1 | <?php |
||
10 | class StaticManager |
||
11 | { |
||
12 | /** @var CollectionInterface[] */ |
||
13 | protected $collections; |
||
14 | /** @var PackageInterface[] */ |
||
15 | protected $packages = []; |
||
16 | |||
17 | 13 | public function __construct(CollectionInterface $emptyCollection) |
|
25 | |||
26 | 4 | public function getCssSet(): CollectionInterface |
|
30 | |||
31 | 4 | public function getJsHeaderSet(): CollectionInterface |
|
35 | |||
36 | 4 | public function getJsFooterSet(): CollectionInterface |
|
40 | |||
41 | 3 | public function drawHeaderScripts(): string |
|
46 | |||
47 | 3 | public function drawFooterScripts(): string |
|
52 | |||
53 | 6 | protected function drawScripts(CollectionInterface $collection): string |
|
66 | |||
67 | protected function convertToAttributesString(array $item): string |
||
73 | |||
74 | 3 | public function drawStyles(): string |
|
93 | |||
94 | /** |
||
95 | * @param string|array $item |
||
96 | * @param string $defaultAttr |
||
97 | * @return array |
||
98 | */ |
||
99 | 9 | protected function prepareItem($item, $defaultAttr = 'src'): array |
|
103 | |||
104 | 1 | public function setPackage(string $name, PackageInterface $package) |
|
109 | |||
110 | /** |
||
111 | * @param string $name |
||
112 | * @return PackageInterface |
||
113 | * @throws NotFoundKeyException |
||
114 | */ |
||
115 | 2 | public function getPackage(string $name): PackageInterface |
|
123 | } |
||
124 |
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..