PHP Class Vimeo\ABLincoln\Operators\AbstractSimpleOperator

Afficher le fichier Open project: vimeo/ablincoln

Protected Properties

Свойство Type Description
$assignment
$parameters

Méthodes publiques

Méthode Description
__construct ( array $options, mixed $inputs ) Store the set of parameters to use as required and optional arguments
args ( ) : array Argument accessor
execute ( Assignment $assignment ) : mixed Evaluate all parameters and store as instance variables, then execute the operator as defined in simpleExecute()
setArg ( mixed $key, mixed $value ) Argument setter

Méthodes protégées

Méthode Description
_simpleExecute ( ) : mixed Implement with operator functionality

Method Details

__construct() public méthode

Store the set of parameters to use as required and optional arguments
public __construct ( array $options, mixed $inputs )
$options array array mapping operator options to values
$inputs mixed input value/array used for hashing

_simpleExecute() abstract protected méthode

Implement with operator functionality
abstract protected _simpleExecute ( ) : mixed
Résultat mixed the evaluated expression

args() public méthode

Argument accessor
public args ( ) : array
Résultat array operator arguments

execute() public méthode

Evaluate all parameters and store as instance variables, then execute the operator as defined in simpleExecute()
public execute ( Assignment $assignment ) : mixed
$assignment Assignment object used to evaluate parameters
Résultat mixed the evaluated expression

setArg() public méthode

Argument setter
public setArg ( mixed $key, mixed $value )
$key mixed name of argument to set
$value mixed value to set argument

Property Details

$assignment protected_oe property

protected $assignment

$parameters protected_oe property

protected $parameters