W3cubDocs

/Phalcon 2

Abstract class Phalcon\Annotations\Adapter

implements Phalcon\Annotations\AdapterInterface

This is the base class for Phalcon\Annotations adapters

Methods

public setReader (Phalcon\Annotations\ReaderInterface $reader)

Sets the annotations parser

public Phalcon\Annotations\ReaderInterface getReader ()

Returns the annotation reader

public Phalcon\Annotations\Reflection get (string|object $className)

Parses or retrieves all the annotations found in a class

public array getMethods (string $className)

Returns the annotations found in all the class’ methods

public Phalcon\Annotations\Collection getMethod (string $className, string $methodName)

Returns the annotations found in a specific method

public array getProperties (string $className)

Returns the annotations found in all the class’ methods

public Phalcon\Annotations\Collection getProperty (string $className, string $propertyName)

Returns the annotations found in a specific property

abstract public Phalcon\Annotations\Reflection read (string $key) inherited from Phalcon\Annotations\AdapterInterface

Read parsed annotations

abstract public write (string $key, Phalcon\Annotations\Reflection $data) inherited from Phalcon\Annotations\AdapterInterface

Write parsed annotations

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Annotations_Adapter.html