W3cubDocs

/Phalcon 2

Class Phalcon\Annotations\Adapter\Memory

extends abstract class Phalcon\Annotations\Adapter

implements Phalcon\Annotations\AdapterInterface

Stores the parsed annotations in memory. This adapter is the suitable development/testing

Methods

public Phalcon\Annotations\Reflection read (string $key)

Reads parsed annotations from memory

public write (string $key, Phalcon\Annotations\Reflection $data)

Writes parsed annotations to memory

public setReader (Phalcon\Annotations\ReaderInterface $reader) inherited from Phalcon\Annotations\Adapter

Sets the annotations parser

public Phalcon\Annotations\ReaderInterface getReader () inherited from Phalcon\Annotations\Adapter

Returns the annotation reader

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

Parses or retrieves all the annotations found in a class

public array getMethods (string $className) inherited from Phalcon\Annotations\Adapter

Returns the annotations found in all the class’ methods

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

Returns the annotations found in a specific method

public array getProperties (string $className) inherited from Phalcon\Annotations\Adapter

Returns the annotations found in all the class’ methods

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

Returns the annotations found in a specific property

© 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_Memory.html