1 | <?php |
||
15 | class Pool extends \Stash\Pool implements PoolDurationInterface |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * The cache duration |
||
20 | * |
||
21 | * @var null|int|\DateInterval |
||
22 | */ |
||
23 | protected $itemDuration; |
||
24 | |||
25 | /** |
||
26 | * @inheritdoc |
||
27 | */ |
||
28 | 2 | public function setItemDuration($duration) |
|
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | 2 | public function getItemDuration() |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function getItem($key) |
||
60 | } |
||
61 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.