| 1 | <?php |
||
| 7 | class Policy |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var Rule[] |
||
| 11 | */ |
||
| 12 | protected $rules; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Create a new Policy instance. |
||
| 16 | * |
||
| 17 | * @param array $rules |
||
| 18 | */ |
||
| 19 | public function __construct(array $rules = []) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Test if the method call is allowed by this policy. |
||
| 26 | * |
||
| 27 | * @param MethodCall $call |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | public function test(MethodCall $call) |
||
| 36 | } |
||
| 37 |