| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 7 | public function toString(): string |
|
| 39 | { |
||
| 40 | $queryParts = array( |
||
| 41 | 7 | 'DELETE', |
|
| 42 | 7 | $this->buildFrom(), |
|
| 43 | 6 | $this->buildJoin(), |
|
| 44 | 6 | $this->buildWhere($this->escaper), |
|
| 45 | 6 | $this->buildOrderBy(), |
|
| 46 | 6 | $this->buildLimit(), |
|
| 47 | ); |
||
| 48 | |||
| 49 | 6 | return implode(' ', array_filter($queryParts)); |
|
| 50 | } |
||
| 51 | |||
| 72 |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.