Andx.php
9 months ago
Base.php
9 months ago
Comparison.php
9 months ago
Composite.php
9 months ago
From.php
9 months ago
Func.php
9 months ago
GroupBy.php
9 months ago
Join.php
9 months ago
Literal.php
9 months ago
Math.php
9 months ago
OrderBy.php
9 months ago
Orx.php
9 months ago
Select.php
9 months ago
index.php
9 months ago
Func.php
28 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Query\Expr; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use function implode; |
| 6 | class Func |
| 7 | { |
| 8 | protected $name; |
| 9 | protected $arguments; |
| 10 | public function __construct($name, $arguments) |
| 11 | { |
| 12 | $this->name = $name; |
| 13 | $this->arguments = (array) $arguments; |
| 14 | } |
| 15 | public function getName() |
| 16 | { |
| 17 | return $this->name; |
| 18 | } |
| 19 | public function getArguments() |
| 20 | { |
| 21 | return $this->arguments; |
| 22 | } |
| 23 | public function __toString() |
| 24 | { |
| 25 | return $this->name . '(' . implode(', ', $this->arguments) . ')'; |
| 26 | } |
| 27 | } |
| 28 |