← All docs
class_attribute_args()
Returns the constructor arguments of a named attribute applied to a class.
class_attribute_args()
function class_attribute_args(string $class_name, string $attribute_name): array
Returns the constructor arguments of a named attribute applied to a class.
Parameters:
$class_name(string)$attribute_name(string)
Returns: array
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how class_attribute_args is implemented in the compiler, see the internals page.