Вход Регистрация
Файл: symfony-2.7/src/Symfony/Component/ExpressionLanguage/Tests/Fixtures/TestProvider.php
Строк: 58
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace SymfonyComponentExpressionLanguageTestsFixtures;

use 
SymfonyComponentExpressionLanguageExpressionFunction;
use 
SymfonyComponentExpressionLanguageExpressionFunctionProviderInterface;

class 
TestProvider implements ExpressionFunctionProviderInterface
{
    public function 
getFunctions()
    {
        return array(
            new 
ExpressionFunction('identity', function ($input) {
                return 
$input;
            }, function (array 
$values$input) {
                return 
$input;
            }),
        );
    }
}
Онлайн: 1
Реклама