Project Versions

Table Of Contents

Previous topic

Class Phalcon\Annotations\Adapter

Next topic

Class Phalcon\Annotations\Adapter\Files

This Page

Class Phalcon\Annotations\Adapter\Apc

extends Phalcon\Annotations\Adapter

implements Phalcon\Annotations\AdapterInterface

Phalcon\Annotations\Adapter\Files Stores the parsed annotations in APC. This adapter is the suitable for production

<?php

 $annotations = new \Phalcon\Annotations\Adapter\Apc();

Methods

public array read (string $key)

Reads parsed annotations from Apc

public write (string $key, array $data)

Writes parsed annotations to APC

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