1 | <?php |
||
5 | class Builder |
||
6 | { |
||
7 | /** |
||
8 | * @var array |
||
9 | */ |
||
10 | protected $calls = []; |
||
11 | |||
12 | /** |
||
13 | * |
||
14 | * |
||
15 | * @param string $method |
||
16 | * @param array $arguments |
||
17 | * @return $this |
||
18 | */ |
||
19 | public function allow($method, array $arguments = []) |
||
25 | |||
26 | /** |
||
27 | * Get the rules as a Policy. |
||
28 | * |
||
29 | * @return Policy |
||
30 | */ |
||
31 | public function toPolicy() |
||
35 | } |
||
36 |