1 | <?php |
||
13 | trait CollectableItemTrait |
||
14 | { |
||
15 | /** @var string */ |
||
16 | protected $namespace; |
||
17 | |||
18 | /** @var DynamicPageView[] */ |
||
19 | protected $parentPageViews; |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | 24 | public function getNamespace() |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 38 | public function setNamespace($namespace) |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function &getParentPageViews() |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 3 | public function saveParentPageView(DynamicPageView &$pageView) |
|
52 | } |
||
53 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.