Skip to content

Commit 46adc39

Browse files
committed
override Transformer::isSameAs
1 parent 53bebd7 commit 46adc39

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Ubiquity/attributes/items/Transformer.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* - #[Transformer("transformerName")]
1313
*
1414
* @author jc
15-
* @version 1.0.0
15+
* @version 1.0.1
1616
*/
1717
#[Attribute(Attribute::TARGET_PROPERTY)]
1818
class Transformer extends BaseAttribute {
@@ -23,4 +23,9 @@ class Transformer extends BaseAttribute {
2323
public function __construct(string $name) {
2424
$this->name = $name;
2525
}
26+
27+
public function isSameAs(BaseAnnotationTrait $annot): bool {
28+
return \get_class($annot) === self::class && $this->name == $annot->name;
29+
}
30+
2631
}

0 commit comments

Comments
 (0)