Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- <?php
-
- namespace App\Transmission\Layouts;
-
- abstract class SIFLayout
- {
- public SIFCommonHeader $header;
-
- const COL_NAME_HEADER = 'Header';
- const COL_NAME_BODY = 'Body';
-
- public function __construct()
- {
- $this->header = new SIFCommonHeader();
- }
-
-
- abstract protected function getBodyArray() : array;
-
-
- public function toArray() : array
- {
- $result = [];
- $result[self::COL_NAME_HEADER] = $this->header->toArray();
- $result[self::COL_NAME_BODY] = $this->getBodyArray();
- return $result;
- }
- }
|