Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Allow.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ubiquity\attributes\items\acl
;
4
5
use Attribute;
6
use
Ubiquity\annotations\BaseAnnotationTrait
;
7
use
Ubiquity\attributes\items\BaseAttribute
;
8
20
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
21
class
Allow
extends
BaseAttribute
,
BaseAnnotationTrait
{
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
Ubiquity\annotations$BaseAnnotationTrait This class is part of Ubiquity.
Definition
BaseAnnotationTrait.php:13
Ubiquity\attributes\items\BaseAttribute
Ubiquity\attributes$BaseAttribute This class is part of Ubiquity.
Definition
BaseAttribute.php:15
Ubiquity\attributes\items\acl\Allow
Attribute Allow.
Definition
Allow.php:21
Ubiquity\attributes\items\acl\Allow\$resource
string $resource
Definition
Allow.php:27
Ubiquity\attributes\items\acl\Allow\$permission
string $permission
Definition
Allow.php:25
Ubiquity\attributes\items\acl\Allow\__construct
__construct(string|array $role, ?string $resource=null, ?string $permission=null)
Allow constructor.
Definition
Allow.php:35
Ubiquity\attributes\items\acl\Allow\$role
string array $role
Definition
Allow.php:23
Ubiquity\attributes\items\acl
Definition
Allow.php:3
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity-attributes
src
Ubiquity
attributes
items
acl
Allow.php
Generated on Sun Dec 10 2023 15:04:04 for
Ubiquity
by
doxygen
1.9.8