1 | <?php |
||
18 | trait Trait_RuleWithOptions |
||
19 | { |
||
20 | /** @var array $options */ |
||
21 | protected $options = []; |
||
22 | |||
23 | /** |
||
24 | */ |
||
25 | 103 | public function setOptions(array $options) |
|
31 | |||
32 | /** |
||
33 | */ |
||
34 | 83 | public function getOption($name, array $contextual_options=[]) |
|
40 | |||
41 | /** |
||
42 | * @param $contextual_options |
||
43 | */ |
||
44 | 83 | public function getOptions(array $contextual_options=[]) |
|
60 | |||
61 | /**/ |
||
62 | } |
||
63 |
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.