| Total Complexity | 4 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class Standard implements Iface |
||
| 21 | { |
||
| 22 | private $filter; |
||
| 23 | private $value; |
||
| 24 | |||
| 25 | |||
| 26 | /** |
||
| 27 | * Initializes the object |
||
| 28 | * |
||
| 29 | * @param \Aimeos\Base\Criteria\Iface $filter Criteria object with conditions, sortations, etc. |
||
| 30 | * @param \Aimeos\Base\DB\Result\Iface $result Result set to iterate over |
||
| 31 | */ |
||
| 32 | public function __construct( \Aimeos\Base\Criteria\Iface $filter ) |
||
| 33 | { |
||
| 34 | $this->filter = $filter; |
||
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | /** |
||
| 39 | * Returns the filter criteria object |
||
| 40 | * |
||
| 41 | * @return \Aimeos\Base\Criteria\Iface Filter criteria object |
||
| 42 | */ |
||
| 43 | public function filter() : \Aimeos\Base\Criteria\Iface |
||
| 46 | } |
||
| 47 | |||
| 48 | |||
| 49 | /** |
||
| 50 | * Sets the new cursor value |
||
| 51 | * |
||
| 52 | * @return mixed $value Cursor value |
||
| 53 | */ |
||
| 54 | public function setValue( $value ) : \Aimeos\MShop\Common\Cursor\Iface |
||
| 55 | { |
||
| 56 | $this->value = $value; |
||
| 57 | return $this; |
||
| 58 | } |
||
| 59 | |||
| 60 | |||
| 61 | /** |
||
| 62 | * Returns the cursor value |
||
| 63 | * |
||
| 64 | * @return mixed Cursor value |
||
| 65 | */ |
||
| 66 | public function value() |
||
| 69 | } |
||
| 70 | } |
||
| 71 |