| 1 | <?php |
||
| 15 | class Closure extends Rule { |
||
| 16 | /** |
||
| 17 | * |
||
| 18 | * @var \Closure |
||
| 19 | */ |
||
| 20 | private $closure; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * an array of arguments to pass as parameters to the closure |
||
| 24 | * |
||
| 25 | * @var mixed[] |
||
| 26 | */ |
||
| 27 | private $arguments; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * |
||
| 31 | * @param Closure $closure |
||
| 32 | * @param mixed[] $arguments |
||
| 33 | * an optional array of arguments to pass to the closure |
||
| 34 | */ |
||
| 35 | 2 | public function __construct(\Closure $closure, $arguments = array()) |
|
| 40 | |||
| 41 | 2 | protected function _applies() |
|
| 45 | } |