This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Templating/Tests/Fixtures/SimpleHelper.php

35 lines
632 B
PHP
Raw Normal View History

2010-01-04 14:26:20 +00:00
<?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 Symfony\Component\Templating\Tests\Fixtures;
use Symfony\Component\Templating\Helper\Helper;
2010-01-04 14:26:20 +00:00
class SimpleHelper extends Helper
{
protected $value = '';
2010-01-04 14:26:20 +00:00
public function __construct($value)
{
$this->value = $value;
}
2010-01-04 14:26:20 +00:00
public function __toString()
{
return $this->value;
}
2010-01-04 14:26:20 +00:00
public function getName()
{
return 'foo';
}
2010-01-04 14:26:20 +00:00
}