Вход Регистрация
Файл: symfony-2.7/src/Symfony/Component/Templating/Tests/Fixtures/SimpleHelper.php
Строк: 30
<?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 SymfonyComponentTemplatingTestsFixtures;

use 
SymfonyComponentTemplatingHelperHelper;

class 
SimpleHelper extends Helper
{
    protected 
$value '';

    public function 
__construct($value)
    {
        
$this->value $value;
    }

    public function 
__toString()
    {
        return 
$this->value;
    }

    public function 
getName()
    {
        return 
'foo';
    }
}
Онлайн: 1
Реклама