Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Allow.php
Go to the documentation of this file.
1<?php
2
4
5use Attribute;
8
20#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
22
23 public string|array $role;
24
25 public ?string $permission;
26
27 public ?string $resource;
28
35 public function __construct(string|array $role, ?string $resource = null, ?string $permission = null) {
36 $this->role = $role;
37 $this->resource = $resource;
38 $this->permission = $permission;
39 }
40
41}
Ubiquity\annotations$BaseAnnotationTrait This class is part of Ubiquity.
Ubiquity\attributes$BaseAttribute This class is part of Ubiquity.
__construct(string|array $role, ?string $resource=null, ?string $permission=null)
Allow constructor.
Definition Allow.php:35