1 | <?php |
||
21 | class Options |
||
22 | { |
||
23 | /** |
||
24 | * @var callable |
||
25 | */ |
||
26 | protected $whitelist; |
||
27 | |||
28 | /** |
||
29 | * @var callable |
||
30 | */ |
||
31 | protected $limitExceededHandler; |
||
32 | |||
33 | public function __construct(callable $whitelist, callable $limitExceededHandler) |
||
38 | |||
39 | public static function fromArray(array $options) |
||
48 | |||
49 | public function getWhitelist() : callable |
||
53 | |||
54 | public function getLimitExceededHandler() : callable |
||
58 | |||
59 | private static function getDefaultOptions() : array |
||
70 | } |
||
71 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.