vendor/doctrine/orm/src/Query/Expr/Orx.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\ORM\Query\Expr;
  4. use Stringable;
  5. /**
  6. * Expression class for building DQL OR clauses.
  7. *
  8. * @link www.doctrine-project.org
  9. */
  10. class Orx extends Composite
  11. {
  12. /** @var string */
  13. protected $separator = ' OR ';
  14. /** @var list<class-string<Stringable>> */
  15. protected $allowedClasses = [
  16. Comparison::class,
  17. Func::class,
  18. Andx::class,
  19. self::class,
  20. ];
  21. /** @phpstan-var list<string|Comparison|Func|Andx|self> */
  22. protected $parts = [];
  23. /** @phpstan-return list<string|Comparison|Func|Andx|self> */
  24. public function getParts()
  25. {
  26. return $this->parts;
  27. }
  28. }