| 1 | <?php |
||
| 18 | class Item extends Node implements ItemInterface |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var \ArrayIterator |
||
| 23 | */ |
||
| 24 | protected $medias; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var AuthorInterface |
||
| 28 | */ |
||
| 29 | protected $author; |
||
| 30 | |||
| 31 | 72 | public function __construct() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param MediaInterface $media |
||
| 40 | * @return $this |
||
| 41 | */ |
||
| 42 | 8 | public function addMedia(MediaInterface $media) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return \ArrayIterator |
||
| 51 | */ |
||
| 52 | 7 | public function getMedias() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return boolean |
||
| 59 | */ |
||
| 60 | 5 | public function hasMedia() |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return MediaInterface |
||
| 67 | */ |
||
| 68 | 5 | public function newMedia() |
|
| 72 | |||
| 73 | /** |
||
| 74 | * @return AuthorInterface |
||
| 75 | */ |
||
| 76 | 7 | public function getAuthor() |
|
| 80 | |||
| 81 | /** |
||
| 82 | * @param AuthorInterface $author |
||
| 83 | * @return $this |
||
| 84 | */ |
||
| 85 | 8 | public function setAuthor(AuthorInterface $author) |
|
| 91 | |||
| 92 | /** |
||
| 93 | * @return AuthorInterface |
||
| 94 | */ |
||
| 95 | 6 | public function newAuthor() |
|
| 99 | } |
||
| 100 |