| 1 | <?php |
||
| 14 | abstract class AbstractHumanizerExtension extends Twig_Extension |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Default locale. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | const DEFAULT_LOCALE = 'en'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Locale value used by php-humanizer. |
||
| 25 | * |
||
| 26 | * @var TranslatorInterface |
||
| 27 | */ |
||
| 28 | protected $translator; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Constructor with optional translator. |
||
| 32 | * |
||
| 33 | * @param TranslatorInterface|null $translator |
||
| 34 | */ |
||
| 35 | 45 | public function __construct(TranslatorInterface $translator = null) |
|
| 41 | |||
| 42 | 45 | public function setTranslator(TranslatorInterface $translator) |
|
| 46 | } |
||
| 47 |