| 1 | <?php |
||
| 11 | class AggregatePermission implements Permission { |
||
| 12 | /** |
||
| 13 | * The set of permissions that must all be true for aggregate permission to be granted |
||
| 14 | * |
||
| 15 | * @var array permissions |
||
| 16 | */ |
||
| 17 | private $permissions; |
||
| 18 | |||
| 19 | // phpcs:ignore Squiz.Commenting.FunctionComment.Missing |
||
| 20 | public function __construct() { |
||
| 23 | |||
| 24 | // phpcs:ignore Squiz.Commenting.FunctionComment.Missing |
||
| 25 | public function add_permission( $permission ) { |
||
| 28 | |||
| 29 | // phpcs:ignore Squiz.Commenting.FunctionComment.Missing |
||
| 30 | public function granted() { |
||
| 38 | |||
| 39 | // phpcs:ignore Squiz.Commenting.FunctionComment.Missing |
||
| 40 | public function message() { |
||
| 49 | |||
| 50 | // phpcs:ignore Squiz.Commenting.FunctionComment.Missing |
||
| 51 | public function data() { |
||
| 55 | } |
||
| 56 |