From 75a09d39f23bf484014594ede0483be17fc4fbe9 Mon Sep 17 00:00:00 2001 From: Nathanael Esayeas Date: Fri, 23 Aug 2024 14:29:11 -0500 Subject: [PATCH] Update Selector.php Signed-off-by: Nathanael Esayeas --- src/Selector/Selector.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Selector/Selector.php b/src/Selector/Selector.php index e89e8a29..2c395ed9 100644 --- a/src/Selector/Selector.php +++ b/src/Selector/Selector.php @@ -4,6 +4,7 @@ use PHPat\Selector\Modifier\AndModifier; use PHPat\Selector\Modifier\NotModifier; +use PHPat\Selector\Modifier\XorModifier; final class Selector extends SelectorPrimitive { @@ -16,4 +17,9 @@ public static function NOT(SelectorInterface $selector): NotModifier { return new NotModifier($selector); } + + public static function XOR(SelectorInterface ...$selector): XorModifier + { + return new XorModifier($selector); + } }