Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Transformer.php
Go to the documentation of this file.
1<?php
2
4
6use Attribute;
7
17#[Attribute(Attribute::TARGET_PROPERTY)]
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 This class is part of Ubiquity.
Ubiquity\attributes$BaseAttribute This class is part of Ubiquity.