ReflectionProperty::getAttributes

(PHP 8)

ReflectionProperty::getAttributesGets Attributes

說明

public ReflectionProperty::getAttributes(?string $name = null, int $flags = 0): array

Returns all attributes declared on this class property as an array of ReflectionAttribute.

警告

本函數還未編寫文檔,僅有參數列表。

參數

name

flags

返回值

Array of attributes, as a ReflectionAttribute object.