1 | <?php |
||
18 | class Tag implements TagInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var HeaderInterface |
||
22 | */ |
||
23 | protected $header; |
||
24 | |||
25 | /** |
||
26 | * @var ExtendedHeader |
||
27 | */ |
||
28 | protected $extendedHeader; |
||
29 | |||
30 | /** |
||
31 | * @var FrameInterface[] |
||
32 | */ |
||
33 | protected $frames; |
||
34 | |||
35 | /** |
||
36 | * Create tag object. |
||
37 | * |
||
38 | * @param HeaderInterface $header |
||
39 | */ |
||
40 | public function __construct(HeaderInterface $header) |
||
45 | |||
46 | /** |
||
47 | * Get header |
||
48 | * |
||
49 | * @return HeaderInterface |
||
50 | */ |
||
51 | public function getHeader() |
||
55 | |||
56 | /** |
||
57 | * Get extended header |
||
58 | * |
||
59 | * @return ExtendedHeader |
||
60 | */ |
||
61 | public function getExtendedHeader() |
||
65 | |||
66 | /** |
||
67 | * Set extended header |
||
68 | * |
||
69 | * @param ExtendedHeaderInterface $extendedHeader |
||
70 | * |
||
71 | * @throws BadMethodCallException An exception is thrown on ID3 v2.2 tag |
||
72 | * |
||
73 | * @return $this |
||
74 | */ |
||
75 | public function setExtendedHeader(ExtendedHeaderInterface $extendedHeader) |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function getVersion() |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function getFrames() |
||
101 | |||
102 | /** |
||
103 | * Add frame |
||
104 | * |
||
105 | * @param FrameInterface $frame |
||
106 | * |
||
107 | * @return $this |
||
108 | */ |
||
109 | public function addFrame(FrameInterface $frame) |
||
114 | } |
||
115 |
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..