| 1 | <?php |
||
| 12 | class ArticleMedia implements ModelInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | private $id; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $displayOrder; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var Media |
||
| 26 | */ |
||
| 27 | private $media; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * ArticleMedia constructor. |
||
| 31 | * |
||
| 32 | * @param array $data |
||
| 33 | */ |
||
| 34 | public function __construct(array $data) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return int |
||
| 43 | */ |
||
| 44 | public function getId(): int |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return int |
||
| 51 | */ |
||
| 52 | public function getDisplayOrder(): int |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return Media |
||
| 59 | */ |
||
| 60 | public function getMedia(): Media |
||
| 64 | } |
||
| 65 |