SimpleHelper.php 345 B

1234567891011121314151617181920212223
  1. <?php
  2. use Symfony\Component\Templating\Helper\Helper;
  3. class SimpleHelper extends Helper
  4. {
  5. protected $value = '';
  6. public function __construct($value)
  7. {
  8. $this->value = $value;
  9. }
  10. public function __toString()
  11. {
  12. return $this->value;
  13. }
  14. public function getName()
  15. {
  16. return 'foo';
  17. }
  18. }