|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * @see https://github.com/zendframework/zend-i18n for the canonical source repository |
| 4 | + * @copyright Copyright (c) 2018 Zend Technologies USA Inc. (http://www.zend.com) |
| 5 | + * @license https://github.com/zendframework/zend-i18n/blob/master/LICENSE.md New BSD License |
| 6 | + */ |
| 7 | + |
| 8 | +namespace Zend\I18n\View; |
| 9 | + |
| 10 | +use IntlDateFormatter; |
| 11 | + |
| 12 | +// @codingStandardsIgnoreStart |
| 13 | + |
| 14 | +/** |
| 15 | + * Helper trait for auto-completion of code in modern IDEs. |
| 16 | + * |
| 17 | + * The trait provides convenience methods for view helpers, |
| 18 | + * defined by the zend-i18n component. It is designed to be used |
| 19 | + * for type-hinting $this variable inside zend-view templates via doc blocks. |
| 20 | + * |
| 21 | + * The base class is PhpRenderer, followed by the helper trait from |
| 22 | + * the zend-i18n component. However, multiple helper traits from different |
| 23 | + * Zend Framework components can be chained afterwards. |
| 24 | + * |
| 25 | + * @example @var \Zend\View\Renderer\PhpRenderer|\Zend\I18n\View\HelperTrait $this |
| 26 | + * |
| 27 | + * @method string currencyFormat(float $number, string|null $currencyCode = null, bool|null $showDecimals = null, string|null $locale = null, string|null $pattern = null) |
| 28 | + * @method string dateFormat(\DateTime|int|array $date, int $dateType = IntlDateFormatter::NONE, int $timeType = IntlDateFormatter::NONE, string|null $locale = null, string|null $pattern = null) |
| 29 | + * @method string numberFormat(int|float $number, int|null $formatStyle = null, int|null $formatType = null, string|null $locale = null, int|null $decimals = null, array|null $textAttributes = null) |
| 30 | + * @method string plural(array|string $strings, int $number) |
| 31 | + * @method string translate(string $message, string|null $textDomain = null, string|null $locale = null) |
| 32 | + * @method string translatePlural(string $singular, string $plural, int $number, string|null $textDomain = null, string|null $locale = null) |
| 33 | + */ |
| 34 | +trait HelperTrait |
| 35 | +{ |
| 36 | +} |
| 37 | +// @codingStandardsIgnoreEnd |
0 commit comments