ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# Class **Phalcon\Annotations\Annotation**[](# "永久链接至标题") Represents a single annotation in an annotations collection ### Methods[](# "永久链接至标题") public **__construct** (*unknown* $reflectionData) Phalcon\Annotations\Annotation constructor public **getName** () Returns the annotation's name public *mixed***getExpression** (*array* $expr) Resolves an annotation expression public *array***getExprArguments** () Returns the expression arguments without resolving public *array***getArguments** () Returns the expression arguments public **numberArguments** () Returns the number of arguments that the annotation has public *mixed***getArgument** (*int|string* $position) Returns an argument in a specific position public *boolean***hasArgument** (*int|string* $position) Returns an argument in a specific position public *mixed***getNamedArgument** (*string* $name) Returns a named argument public *mixed***getNamedParameter** (*string* $name) Returns a named parameter | - [索引](# "总目录") - [下一页](# "Class Phalcon\Annotations\Collection") | - [上一页](# "Class Phalcon\Annotations\Adapter\Xcache") | - [API Indice](#) »