summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Query/Expr/Orx.php
blob: 2ae233201684bd8b01f253d968324aab0ba94414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php

declare(strict_types=1);

namespace Doctrine\ORM\Query\Expr;

/**
 * Expression class for building DQL OR clauses.
 *
 * @link    www.doctrine-project.org
 */
class Orx extends Composite
{
    protected string $separator = ' OR ';

    /** @var string[] */
    protected array $allowedClasses = [
        Comparison::class,
        Func::class,
        Andx::class,
        self::class,
    ];

    /** @psalm-var list<string|Comparison|Func|Andx|self> */
    protected array $parts = [];

    /** @psalm-return list<string|Comparison|Func|Andx|self> */
    public function getParts(): array
    {
        return $this->parts;
    }
}