| Total Complexity | 3 | 
| Total Lines | 43 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 20 | trait Traits | ||
| 21 | { | ||
| 22 | /** | ||
| 23 | * Adds the given compare, combine or sort expression to the list of expressions | ||
| 24 | * | ||
| 25 | * @param \Aimeos\Base\Criteria\Expression\Iface|null $expr Compare, combine or sort expression | ||
| 26 | * @return \Aimeos\Controller\Frontend\Iface Controller object for chaining method calls | ||
| 27 | */ | ||
| 28 | public function addExpression( ?\Aimeos\Base\Criteria\Expression\Iface $expr = null ) : \Aimeos\Controller\Frontend\Iface | ||
| 32 | } | ||
| 33 | |||
| 34 | |||
| 35 | /** | ||
| 36 | * Returns the compare and combine expressions added by addExpression() | ||
| 37 | * | ||
| 38 | * @return array List of compare and combine expressions | ||
| 39 | */ | ||
| 40 | public function getConditions() : array | ||
| 43 | } | ||
| 44 | |||
| 45 | |||
| 46 | /** | ||
| 47 | * Returns the compare and combine expressions added by addExpression() | ||
| 48 | * | ||
| 49 | * @return array List of sort expressions | ||
| 50 | */ | ||
| 51 | public function getSortations() : array | ||
| 54 | } | ||
| 55 | |||
| 56 | |||
| 57 | /** | ||
| 58 | * Returns the frontend controller | ||
| 59 | * | ||
| 60 | * @return \Aimeos\Controller\Frontend\Iface Frontend controller object | ||
| 61 | */ | ||
| 62 | abstract protected function getController() : \Aimeos\Controller\Frontend\Iface; | ||
| 63 | } | ||
| 64 |