File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the PackageFactory.AtomicFusion.PresentationObjects package
5+ */
6+
7+ declare (strict_types=1 );
8+
9+ namespace PackageFactory \AtomicFusion \PresentationObjects \Fusion ;
10+
11+ /**
12+ * A trait for int component variants for use in EEL
13+ */
14+ trait IntComponentVariant
15+ {
16+ public function equals (int $ other ): bool
17+ {
18+ return $ this === self ::from ($ other );
19+ }
20+
21+ /**
22+ * @param string $methodName
23+ */
24+ public function allowsCallOfMethod ($ methodName ): bool
25+ {
26+ return true ;
27+ }
28+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the PackageFactory.AtomicFusion.PresentationObjects package
5+ */
6+
7+ declare (strict_types=1 );
8+
9+ namespace PackageFactory \AtomicFusion \PresentationObjects \Fusion ;
10+
11+ /**
12+ * A trait for string component variants for use in EEL
13+ */
14+ trait StringComponentVariant
15+ {
16+ public function equals (string $ other ): bool
17+ {
18+ return $ this === self ::from ($ other );
19+ }
20+
21+ /**
22+ * @param string $methodName
23+ */
24+ public function allowsCallOfMethod ($ methodName ): bool
25+ {
26+ return true ;
27+ }
28+ }
You can’t perform that action at this time.
0 commit comments