1 | <?php |
||
20 | class SecurityException extends Exception |
||
21 | { |
||
22 | /** |
||
23 | * |
||
24 | * @var CommandInterface |
||
25 | */ |
||
26 | protected $command; |
||
27 | |||
28 | /** |
||
29 | * |
||
30 | * @var PolicyInterface |
||
31 | */ |
||
32 | protected $policy; |
||
33 | |||
34 | /** |
||
35 | * |
||
36 | * @param CommandInterface $command |
||
37 | * @param PolicyInterface $policy |
||
38 | */ |
||
39 | public function __construct(CommandInterface $command, PolicyInterface $policy) |
||
44 | |||
45 | /** |
||
46 | * |
||
47 | * @return CommandInterface |
||
48 | */ |
||
49 | public function getCommand() |
||
53 | |||
54 | /** |
||
55 | * |
||
56 | * @return PolicyInterface |
||
57 | */ |
||
58 | public function getPolicy() |
||
62 | } |
||
63 |