PHP Class Adamgoose\Routing\Annotations\Annotations\Annotation

Inheritance: implements ArrayAcces\ArrayAccess
Mostrar archivo Open project: adamgoose/laravel-annotations

Protected Properties

Property Type Description
$values array The value array.

Public Methods

Method Description
__construct ( array $values ) : void Create a new annotation instance.
__get ( string $key ) : mixed Dynamically get a property on the annotation.
__set ( string $key, mixed $value ) : void Dynamically set a property on the annotation.
modify ( MethodEndpoint $endpoint, ReflectionMethod $method ) : void Apply the annotation's settings to the given endpoint.
modifyCollection ( EndpointCollection $endpoints, ReflectionClass $class ) : void Apply the annotation's settings to the given endpoint collection.
offsetExists ( string $offset ) : boolean Determine if the value at a given offset exists.
offsetGet ( string $offset ) : mixed Get the value at a given offset.
offsetSet ( string $offset, mixed $value ) : void Set the value at a given offset.
offsetUnset ( string $offset ) : void Remove the value at a given offset.

Method Details

__construct() public method

Create a new annotation instance.
public __construct ( array $values ) : void
$values array
return void

__get() public method

Dynamically get a property on the annotation.
public __get ( string $key ) : mixed
$key string
return mixed

__set() public method

Dynamically set a property on the annotation.
public __set ( string $key, mixed $value ) : void
$key string
$value mixed
return void

modify() public method

Apply the annotation's settings to the given endpoint.
public modify ( MethodEndpoint $endpoint, ReflectionMethod $method ) : void
$endpoint Adamgoose\Routing\Annotations\MethodEndpoint
$method ReflectionMethod
return void

modifyCollection() public method

Apply the annotation's settings to the given endpoint collection.
public modifyCollection ( EndpointCollection $endpoints, ReflectionClass $class ) : void
$endpoints Adamgoose\Routing\Annotations\EndpointCollection
$class ReflectionClass
return void

offsetExists() public method

Determine if the value at a given offset exists.
public offsetExists ( string $offset ) : boolean
$offset string
return boolean

offsetGet() public method

Get the value at a given offset.
public offsetGet ( string $offset ) : mixed
$offset string
return mixed

offsetSet() public method

Set the value at a given offset.
public offsetSet ( string $offset, mixed $value ) : void
$offset string
$value mixed
return void

offsetUnset() public method

Remove the value at a given offset.
public offsetUnset ( string $offset ) : void
$offset string
return void

Property Details

$values protected_oe property

The value array.
protected array $values
return array