PHP Class Vimeo\ABLincoln\Operators\AbstractSimpleOperator

Show file Open project: vimeo/ablincoln

Protected Properties

Property Type Description
$assignment
$parameters

Public Methods

Method 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

Protected Methods

Method Description
_simpleExecute ( ) : mixed Implement with operator functionality

Method Details

__construct() public method

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 method

Implement with operator functionality
abstract protected _simpleExecute ( ) : mixed
return mixed the evaluated expression

args() public method

Argument accessor
public args ( ) : array
return array operator arguments

execute() public method

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
return mixed the evaluated expression

setArg() public method

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 property

protected $assignment

$parameters protected property

protected $parameters