| 1 | <?php |
||
| 6 | abstract class AbstractLayout |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var string $cssFramework Тип верстки. Допустимые значения: html, bootstrap3, bootstrap4 |
||
| 10 | */ |
||
| 11 | protected $cssFramework; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string $orientation Тип верстки формы |
||
| 15 | */ |
||
| 16 | protected $orientation; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string $formClasses Классы, которые надо назначить на форму |
||
| 20 | */ |
||
| 21 | protected $formClasses = ''; |
||
| 22 | |||
| 23 | abstract protected function setFormClasses(); |
||
| 24 | |||
| 25 | /** |
||
| 26 | * AbstractLayout constructor. |
||
| 27 | * @param string $cssFramework |
||
| 28 | * @param string $orientation |
||
| 29 | */ |
||
| 30 | public function __construct(string $cssFramework = 'html', ?string $orientation = null) |
||
| 35 | |||
| 36 | public function orientation(?string $orientation = null): self |
||
| 44 | |||
| 45 | public function getFormClasses(): string |
||
| 49 | |||
| 50 | } |