Tabla de Contenidos

Tema anterior

< Class Phalcon\Annotations\Adapter\Memory

Próximo tema

Class Phalcon\Annotations\Collection >

Esta página

Class Phalcon\Annotations\Annotation

Represents a single annotation in an annotations collection

Methods

public __construct (array $reflectionData)

Phalcon\Annotations\Annotation constructor

public string 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 int numberArguments ()

Returns the number of arguments that the annotation has

public mixed getArgument (unknown $position)

Returns an argument in an specific position

public mixed hasArgument (unknown $position)

Returns an argument in an specific position

public mixed getNamedParameter (string $name)

Returns a named argument

public boolean hasNamedArgument (unknown $name)

Checks if the annotation has a specific named argument