@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * @param QueryStatement|null $queryStatement |
| 65 | 65 | */ |
| 66 | 66 | public function __construct( |
| 67 | - string|array $table, |
|
| 67 | + string | array $table, |
|
| 68 | 68 | ?QueryStatement $queryStatement = null |
| 69 | 69 | ) { |
| 70 | 70 | parent::__construct($queryStatement); |
@@ -91,9 +91,9 @@ discard block |
||
| 91 | 91 | * @return WhereStatement|Where|Select|Delete|Update |
| 92 | 92 | */ |
| 93 | 93 | public function where( |
| 94 | - string|Expression|Closure $column, |
|
| 94 | + string | Expression | Closure $column, |
|
| 95 | 95 | bool $isExpression = false |
| 96 | - ): WhereStatement|Where|Select|Delete|Update { |
|
| 96 | + ): WhereStatement | Where | Select | Delete | Update { |
|
| 97 | 97 | return $this->addWhereCondition($column, 'AND', $isExpression); |
| 98 | 98 | } |
| 99 | 99 | |
@@ -104,9 +104,9 @@ discard block |
||
| 104 | 104 | * @return WhereStatement|Where|Select|Delete|Update |
| 105 | 105 | */ |
| 106 | 106 | public function orWhere( |
| 107 | - string|Expression|Closure $column, |
|
| 107 | + string | Expression | Closure $column, |
|
| 108 | 108 | bool $isExpression = false |
| 109 | - ): WhereStatement|Where|Select|Delete|Update { |
|
| 109 | + ): WhereStatement | Where | Select | Delete | Update { |
|
| 110 | 110 | return $this->addWhereCondition($column, 'OR', $isExpression); |
| 111 | 111 | } |
| 112 | 112 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | * @param Closure $select |
| 115 | 115 | * @return WhereStatement|Select|Delete|Update |
| 116 | 116 | */ |
| 117 | - public function whereExists(Closure $select): WhereStatement|Select|Delete|Update |
|
| 117 | + public function whereExists(Closure $select): WhereStatement | Select | Delete | Update |
|
| 118 | 118 | { |
| 119 | 119 | return $this->addWhereExistsCondition($select, 'AND', false); |
| 120 | 120 | } |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | * @param Closure $select |
| 124 | 124 | * @return WhereStatement|Select|Delete|Update |
| 125 | 125 | */ |
| 126 | - public function orWhereExists(Closure $select): WhereStatement|Select|Delete|Update |
|
| 126 | + public function orWhereExists(Closure $select): WhereStatement | Select | Delete | Update |
|
| 127 | 127 | { |
| 128 | 128 | return $this->addWhereExistsCondition($select, 'OR', false); |
| 129 | 129 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | * @param Closure $select |
| 133 | 133 | * @return WhereStatement|Select|Delete|Update |
| 134 | 134 | */ |
| 135 | - public function whereNotExists(Closure $select): WhereStatement|Select|Delete|Update |
|
| 135 | + public function whereNotExists(Closure $select): WhereStatement | Select | Delete | Update |
|
| 136 | 136 | { |
| 137 | 137 | return $this->addWhereExistsCondition($select, 'AND', true); |
| 138 | 138 | } |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * @param Closure $select |
| 142 | 142 | * @return WhereStatement|Select|Delete|Update |
| 143 | 143 | */ |
| 144 | - public function orWhereNotExists(Closure $select): WhereStatement|Select|Delete|Update |
|
| 144 | + public function orWhereNotExists(Closure $select): WhereStatement | Select | Delete | Update |
|
| 145 | 145 | { |
| 146 | 146 | return $this->addWhereExistsCondition($select, 'OR', true); |
| 147 | 147 | } |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | mixed $column, |
| 167 | 167 | string $separator = 'AND', |
| 168 | 168 | bool $isExpression = false |
| 169 | - ): WhereStatement|Where { |
|
| 169 | + ): WhereStatement | Where { |
|
| 170 | 170 | if (($column instanceof Closure) && !$isExpression) { |
| 171 | 171 | $this->queryStatement->addWhereGroup($column, $separator); |
| 172 | 172 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * @param string|null $alias |
| 68 | 68 | * @return $this |
| 69 | 69 | */ |
| 70 | - public function column(string|Expression|Closure $name, string $alias = null): self |
|
| 70 | + public function column(string | Expression | Closure $name, string $alias = null): self |
|
| 71 | 71 | { |
| 72 | 72 | $this->queryStatement->addColumn($name, $alias); |
| 73 | 73 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * @return $this |
| 105 | 105 | */ |
| 106 | 106 | public function count( |
| 107 | - string|array|Expression|Closure $column = '*', |
|
| 107 | + string | array | Expression | Closure $column = '*', |
|
| 108 | 108 | ?string $alias = null, |
| 109 | 109 | bool $distinct = false |
| 110 | 110 | ): self { |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * @return $this |
| 122 | 122 | */ |
| 123 | 123 | public function avg( |
| 124 | - string|Expression|Closure $column, |
|
| 124 | + string | Expression | Closure $column, |
|
| 125 | 125 | ?string $alias = null, |
| 126 | 126 | bool $distinct = false |
| 127 | 127 | ): self { |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | * @return $this |
| 136 | 136 | */ |
| 137 | 137 | public function sum( |
| 138 | - string|Expression|Closure $column, |
|
| 138 | + string | Expression | Closure $column, |
|
| 139 | 139 | ?string $alias = null, |
| 140 | 140 | bool $distinct = false |
| 141 | 141 | ): self { |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | * @return $this |
| 150 | 150 | */ |
| 151 | 151 | public function min( |
| 152 | - string|Expression|Closure $column, |
|
| 152 | + string | Expression | Closure $column, |
|
| 153 | 153 | ?string $alias = null, |
| 154 | 154 | bool $distinct = false |
| 155 | 155 | ): self { |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | * @return $this |
| 164 | 164 | */ |
| 165 | 165 | public function max( |
| 166 | - string|Expression|Closure $column, |
|
| 166 | + string | Expression | Closure $column, |
|
| 167 | 167 | ?string $alias = null, |
| 168 | 168 | bool $distinct = false |
| 169 | 169 | ): self { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function __construct( |
| 71 | 71 | Connection $connection, |
| 72 | - string|array $tables, |
|
| 72 | + string | array $tables, |
|
| 73 | 73 | ?QueryStatement $queryStatement = null |
| 74 | 74 | ) { |
| 75 | 75 | parent::__construct($tables, $queryStatement); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | * |
| 82 | 82 | * @return ResultSet |
| 83 | 83 | */ |
| 84 | - public function select(string|Expression|Closure|array $columns = []): ResultSet |
|
| 84 | + public function select(string | Expression | Closure | array $columns = []): ResultSet |
|
| 85 | 85 | { |
| 86 | 86 | parent::select($columns); |
| 87 | 87 | $driver = $this->connection->getDriver(); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * |
| 98 | 98 | * @return mixed |
| 99 | 99 | */ |
| 100 | - public function column(string|Expression|Closure $name): mixed |
|
| 100 | + public function column(string | Expression | Closure $name): mixed |
|
| 101 | 101 | { |
| 102 | 102 | parent::column($name); |
| 103 | 103 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * @return int |
| 112 | 112 | */ |
| 113 | 113 | public function count( |
| 114 | - string|Expression|Closure $column = '*', |
|
| 114 | + string | Expression | Closure $column = '*', |
|
| 115 | 115 | bool $distinct = false |
| 116 | 116 | ): int { |
| 117 | 117 | parent::count($column, $distinct); |
@@ -125,9 +125,9 @@ discard block |
||
| 125 | 125 | * @return int|float |
| 126 | 126 | */ |
| 127 | 127 | public function avg( |
| 128 | - string|Expression|Closure $column, |
|
| 128 | + string | Expression | Closure $column, |
|
| 129 | 129 | bool $distinct = false |
| 130 | - ): int|float { |
|
| 130 | + ): int | float { |
|
| 131 | 131 | parent::avg($column, $distinct); |
| 132 | 132 | return $this->getColumnResult(); |
| 133 | 133 | } |
@@ -139,9 +139,9 @@ discard block |
||
| 139 | 139 | * @return int|float |
| 140 | 140 | */ |
| 141 | 141 | public function sum( |
| 142 | - string|Expression|Closure $column, |
|
| 142 | + string | Expression | Closure $column, |
|
| 143 | 143 | bool $distinct = false |
| 144 | - ): int|float { |
|
| 144 | + ): int | float { |
|
| 145 | 145 | parent::sum($column, $distinct); |
| 146 | 146 | return $this->getColumnResult(); |
| 147 | 147 | } |
@@ -153,9 +153,9 @@ discard block |
||
| 153 | 153 | * @return int|float |
| 154 | 154 | */ |
| 155 | 155 | public function min( |
| 156 | - string|Expression|Closure $column, |
|
| 156 | + string | Expression | Closure $column, |
|
| 157 | 157 | bool $distinct = false |
| 158 | - ): int|float { |
|
| 158 | + ): int | float { |
|
| 159 | 159 | parent::min($column, $distinct); |
| 160 | 160 | return $this->getColumnResult(); |
| 161 | 161 | } |
@@ -167,9 +167,9 @@ discard block |
||
| 167 | 167 | * @return int|float |
| 168 | 168 | */ |
| 169 | 169 | public function max( |
| 170 | - string|Expression|Closure $column, |
|
| 170 | + string | Expression | Closure $column, |
|
| 171 | 171 | bool $distinct = false |
| 172 | - ): int|float { |
|
| 172 | + ): int | float { |
|
| 173 | 173 | parent::max($column, $distinct); |
| 174 | 174 | return $this->getColumnResult(); |
| 175 | 175 | } |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | * @param string|null $name |
| 165 | 165 | * @return $this |
| 166 | 166 | */ |
| 167 | - public function primary(string|array $columns, ?string $name = null): self |
|
| 167 | + public function primary(string | array $columns, ?string $name = null): self |
|
| 168 | 168 | { |
| 169 | 169 | return $this->addKey('addPrimary', $columns, $name); |
| 170 | 170 | } |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * @param string|null $name |
| 176 | 176 | * @return $this |
| 177 | 177 | */ |
| 178 | - public function unique(string|array $columns, ?string $name = null): self |
|
| 178 | + public function unique(string | array $columns, ?string $name = null): self |
|
| 179 | 179 | { |
| 180 | 180 | return $this->addKey('addUnique', $columns, $name); |
| 181 | 181 | } |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | * @param string|null $name |
| 187 | 187 | * @return $this |
| 188 | 188 | */ |
| 189 | - public function index(string|array $columns, ?string $name = null): self |
|
| 189 | + public function index(string | array $columns, ?string $name = null): self |
|
| 190 | 190 | { |
| 191 | 191 | return $this->addKey('addIndex', $columns, $name); |
| 192 | 192 | } |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | * @param string|null $name |
| 198 | 198 | * @return ForeignKey |
| 199 | 199 | */ |
| 200 | - public function foreign(string|array $columns, ?string $name = null): ForeignKey |
|
| 200 | + public function foreign(string | array $columns, ?string $name = null): ForeignKey |
|
| 201 | 201 | { |
| 202 | 202 | if (!is_array($columns)) { |
| 203 | 203 | $columns = [$columns]; |
@@ -561,7 +561,7 @@ discard block |
||
| 561 | 561 | */ |
| 562 | 562 | protected function addKey( |
| 563 | 563 | string $type, |
| 564 | - string|array $columns, |
|
| 564 | + string | array $columns, |
|
| 565 | 565 | ?string $name = null |
| 566 | 566 | ): self { |
| 567 | 567 | static $maps = [ |