| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class OgLocaleTag extends MetaTag |
||
| 23 | { |
||
| 24 | // Constants |
||
| 25 | // ========================================================================= |
||
| 26 | |||
| 27 | public const ITEM_TYPE = 'OgLocaleTag'; |
||
| 28 | |||
| 29 | // Static Methods |
||
| 30 | // ========================================================================= |
||
| 31 | |||
| 32 | // Public Properties |
||
| 33 | // ========================================================================= |
||
| 34 | |||
| 35 | // Public Methods |
||
| 36 | // ========================================================================= |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @inheritdoc |
||
| 40 | */ |
||
| 41 | public function init(): void |
||
| 42 | { |
||
| 43 | parent::init(); |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @inheritdoc |
||
| 48 | */ |
||
| 49 | public function rules(): array |
||
| 50 | { |
||
| 51 | $rules = parent::rules(); |
||
| 52 | $rules = array_merge($rules, [ |
||
| 53 | // content in this case should be a string |
||
| 54 | [['content'], 'string'], |
||
| 55 | ]); |
||
| 56 | |||
| 57 | return $rules; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @inheritdoc |
||
| 62 | */ |
||
| 63 | public function prepForRender(&$data): bool |
||
| 73 | } |
||
| 74 | } |
||
| 75 |