| 1 | <?php |
||
| 8 | abstract class AbstractBaseHtmlTagObject |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Normalize a value. |
||
| 12 | * |
||
| 13 | * @param mixed $values |
||
| 14 | * The value to normalize. |
||
| 15 | * |
||
| 16 | * @return array |
||
| 17 | * The value normalized. |
||
| 18 | */ |
||
| 19 | 23 | public function normalizeValue($values) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Transform a multidimensional array into a flat array. |
||
| 35 | * |
||
| 36 | * @param mixed[] $array |
||
| 37 | * The input array. |
||
| 38 | * |
||
| 39 | * @return mixed[] |
||
| 40 | * The array with only one dimension. |
||
| 41 | */ |
||
| 42 | 24 | public function ensureFlatArray(array $array) |
|
| 54 | |||
| 55 | /** |
||
| 56 | * Make sure the value is an array. |
||
| 57 | * |
||
| 58 | * @param mixed $value |
||
| 59 | * The input value. |
||
| 60 | * |
||
| 61 | * @return array |
||
| 62 | * The input value in an array. |
||
| 63 | */ |
||
| 64 | 24 | public function ensureArray($value) |
|
| 94 | } |
||
| 95 |