8b7d81910ce443aea155b5b7fae589167bcfd17a
[yaffs-website] / vendor / symfony / expression-language / Tests / Fixtures / TestProvider.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\ExpressionLanguage\Tests\Fixtures;
13
14 use Symfony\Component\ExpressionLanguage\ExpressionFunction;
15 use Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface;
16
17 class TestProvider implements ExpressionFunctionProviderInterface
18 {
19     public function getFunctions()
20     {
21         return array(
22             new ExpressionFunction('identity', function ($input) {
23                 return $input;
24             }, function (array $values, $input) {
25                 return $input;
26             }),
27         );
28     }
29 }