1 | <?php |
||
16 | class MediaObject extends EventSourcedAggregateRoot |
||
17 | { |
||
18 | /** |
||
19 | * Mime type of the media object. |
||
20 | * |
||
21 | * @var MIMEType |
||
22 | */ |
||
23 | protected $mimeType; |
||
24 | |||
25 | /** |
||
26 | * The id of the media object. |
||
27 | * |
||
28 | * @var UUID |
||
29 | */ |
||
30 | protected $mediaObjectId; |
||
31 | |||
32 | /** |
||
33 | * Description of the media object. |
||
34 | * |
||
35 | * @var StringLiteral |
||
36 | */ |
||
37 | protected $description; |
||
38 | |||
39 | /** |
||
40 | * Copyright info. |
||
41 | * |
||
42 | * @var StringLiteral |
||
43 | */ |
||
44 | protected $copyrightHolder; |
||
45 | |||
46 | /** |
||
47 | * The URL where the source file can be found. |
||
48 | * @var Url |
||
49 | */ |
||
50 | protected $sourceLocation; |
||
51 | |||
52 | /** |
||
53 | * @var Language |
||
54 | */ |
||
55 | protected $language; |
||
56 | |||
57 | /** |
||
58 | * @param UUID $id |
||
59 | * @param MIMEType $mimeType |
||
60 | * @param StringLiteral $description |
||
61 | * @param StringLiteral $copyrightHolder |
||
62 | * @param Url $sourceLocation |
||
63 | * @param Language $language |
||
64 | * |
||
65 | * @return MediaObject |
||
66 | */ |
||
67 | public static function create( |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function getAggregateRootId() |
||
97 | |||
98 | protected function applyMediaObjectCreated(MediaObjectCreated $mediaObjectCreated) |
||
107 | |||
108 | /** |
||
109 | * @return StringLiteral |
||
110 | */ |
||
111 | public function getDescription() |
||
115 | |||
116 | /** |
||
117 | * @return StringLiteral |
||
118 | */ |
||
119 | public function getCopyrightHolder() |
||
123 | |||
124 | /** |
||
125 | * @return UUID |
||
126 | */ |
||
127 | public function getMediaObjectId() |
||
131 | |||
132 | /** |
||
133 | * @return MIMEType |
||
134 | */ |
||
135 | public function getMimeType() |
||
139 | |||
140 | /** |
||
141 | * @return Url |
||
142 | */ |
||
143 | public function getSourceLocation() |
||
147 | |||
148 | /** |
||
149 | * @return Language |
||
150 | */ |
||
151 | public function getLanguage() |
||
155 | } |
||
156 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..