X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fexpression-language%2FExpressionFunction.php;fp=vendor%2Fsymfony%2Fexpression-language%2FExpressionFunction.php;h=0000000000000000000000000000000000000000;hp=7222261cd5386bfdd542a0105a1607fafd26c518;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/symfony/expression-language/ExpressionFunction.php b/vendor/symfony/expression-language/ExpressionFunction.php deleted file mode 100644 index 7222261cd..000000000 --- a/vendor/symfony/expression-language/ExpressionFunction.php +++ /dev/null @@ -1,65 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\ExpressionLanguage; - -/** - * Represents a function that can be used in an expression. - * - * A function is defined by two PHP callables. The callables are used - * by the language to compile and/or evaluate the function. - * - * The "compiler" function is used at compilation time and must return a - * PHP representation of the function call (it receives the function - * arguments as arguments). - * - * The "evaluator" function is used for expression evaluation and must return - * the value of the function call based on the values defined for the - * expression (it receives the values as a first argument and the function - * arguments as remaining arguments). - * - * @author Fabien Potencier - */ -class ExpressionFunction -{ - private $name; - private $compiler; - private $evaluator; - - /** - * Constructor. - * - * @param string $name The function name - * @param callable $compiler A callable able to compile the function - * @param callable $evaluator A callable able to evaluate the function - */ - public function __construct($name, $compiler, $evaluator) - { - $this->name = $name; - $this->compiler = $compiler; - $this->evaluator = $evaluator; - } - - public function getName() - { - return $this->name; - } - - public function getCompiler() - { - return $this->compiler; - } - - public function getEvaluator() - { - return $this->evaluator; - } -}