| 1 | <?php |
||
| 11 | class Structure |
||
| 12 | { |
||
| 13 | const TYPE_LIST = 'list'; |
||
| 14 | const TYPE_ARRAY = 'array'; |
||
| 15 | |||
| 16 | const FOUR_SPACE_TAB = ' '; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $type; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $tab; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $iteratorCharacter; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private $keyToValueCharacter; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var Border |
||
| 40 | */ |
||
| 41 | private $border; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $type |
||
| 45 | * @param string $iteratorCharacter |
||
| 46 | * @param string $tab |
||
| 47 | * @param string $keyToValueCharacter |
||
| 48 | * @param Border $border |
||
| 49 | */ |
||
| 50 | public function __construct( |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | public function getType() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return string |
||
| 79 | */ |
||
| 80 | public function getKeyToValueCharacter() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @return string |
||
| 87 | */ |
||
| 88 | public function getIteratorCharacter() |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @return string |
||
| 95 | */ |
||
| 96 | public function getTab() |
||
| 100 | |||
| 101 | /** |
||
| 102 | * @return Border |
||
| 103 | */ |
||
| 104 | public function getBorder() |
||
| 108 | |||
| 109 | /** |
||
| 110 | * @return string[] |
||
| 111 | */ |
||
| 112 | private function getAllowedTypes() |
||
| 121 | } |
||
| 122 |