ReflectionTypeAlias::getAttribute

Returns all attributes with given key

public function getAttribute(
  string $name,
);

Parameters

  • string $name

Return Values

  • ?array<int, - mixed>