Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Transformer.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ubiquity\attributes\items
;
4
5
use
Ubiquity\annotations\BaseAnnotationTrait
;
6
use Attribute;
7
17
#[Attribute(Attribute::TARGET_PROPERTY)]
18
class
Transformer
extends
BaseAttribute
,
BaseAnnotationTrait
{
19
20
public
string
$name
;
21
22
public
function
__construct
(
string
$name
) {
23
$this->name =
$name
;
24
}
25
26
public
function
isSameAs
($annot): bool {
27
return \get_class($annot) ===
Transformer
::class && $this->name == $annot->name;
28
}
29
30
}
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\Transformer
Annotation Transformer.
Definition
Transformer.php:18
Ubiquity\attributes\items\Transformer\__construct
__construct(string $name)
Definition
Transformer.php:22
Ubiquity\attributes\items\Transformer\isSameAs
isSameAs($annot)
Definition
Transformer.php:26
Ubiquity\attributes\items\Transformer\$name
string $name
Definition
Transformer.php:20
Ubiquity\attributes\items
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity-attributes
src
Ubiquity
attributes
items
Transformer.php
Generated on Sun Dec 10 2023 15:04:05 for
Ubiquity
by
doxygen
1.9.8