| 1 | <?php |
||
| 19 | class Options |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var callable |
||
| 23 | */ |
||
| 24 | protected $whitelist; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var callable |
||
| 28 | */ |
||
| 29 | protected $limitExceededHandler; |
||
| 30 | |||
| 31 | 7 | public function __construct(callable $whitelist, callable $limitExceededHandler) |
|
| 36 | |||
| 37 | 7 | public static function fromArray(array $options) |
|
| 46 | |||
| 47 | 7 | public function getWhitelist() |
|
| 51 | |||
| 52 | 3 | public function getLimitExceededHandler() |
|
| 56 | |||
| 57 | private static function getDefaultOptions() |
||
| 68 | } |
||
| 69 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.