Skip to content

Commit

Permalink
Update Selector.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Aug 23, 2024
1 parent 02cd898 commit c2d55bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Selector/Selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use PHPat\Selector\Modifier\AndModifier;
use PHPat\Selector\Modifier\NotModifier;
use PHPat\Selector\Modifier\OrModifier;

final class Selector extends SelectorPrimitive
{
Expand All @@ -16,4 +17,9 @@ public static function NOT(SelectorInterface $selector): NotModifier
{
return new NotModifier($selector);
}

public static function OR(SelectorInterface ...$selector): OrModifier
{
return new OrModifier(...$selector);
}
}

0 comments on commit c2d55bf

Please sign in to comment.