| 1 | <?php |
||
| 10 | class Specification implements ISpecificationCriteria |
||
| 11 | { |
||
| 12 | |||
| 13 | protected $where = []; |
||
| 14 | |||
| 15 | protected $limit = 0; |
||
| 16 | |||
| 17 | protected $ofset = 0; |
||
| 18 | |||
| 19 | protected $joins = []; |
||
| 20 | |||
| 21 | protected $order = []; |
||
| 22 | |||
| 23 | protected $manualJoins = []; |
||
| 24 | |||
| 25 | protected $group = null; |
||
| 26 | |||
| 27 | protected $manualWheres = []; |
||
| 28 | |||
| 29 | protected $whereType = 'AND'; |
||
| 30 | |||
| 31 | protected $manualSelect; |
||
| 32 | |||
| 33 | function getManualSelect() |
||
| 37 | |||
| 38 | function setManualSelect($Select) |
||
| 42 | |||
| 43 | function getWhere() |
||
| 47 | |||
| 48 | function getLimit() |
||
| 52 | |||
| 53 | function getOfset() |
||
| 57 | |||
| 58 | function getJoins() |
||
| 62 | |||
| 63 | function getOrder() |
||
| 67 | |||
| 68 | function getManualJoins() |
||
| 72 | |||
| 73 | function getGroup() |
||
| 77 | |||
| 78 | function getManualWheres() |
||
| 82 | |||
| 83 | function getWhereType() |
||
| 87 | |||
| 88 | function setWhere($field, $value = false) |
||
| 98 | |||
| 99 | function setLimit($limit) |
||
| 104 | |||
| 105 | function setOfset($ofset) |
||
| 110 | |||
| 111 | function setJoins($joins) |
||
| 116 | |||
| 117 | function setOrder($order) |
||
| 122 | |||
| 123 | function setManualJoins($manualJoins) |
||
| 128 | |||
| 129 | function setGroup($group) |
||
| 134 | |||
| 135 | function setManualWheres($manualWheres) |
||
| 140 | |||
| 141 | function setWhereType($whereType) |
||
| 146 | |||
| 147 | /** |
||
| 148 | * Создание критериев |
||
| 149 | */ |
||
| 150 | public function getCriteria() |
||
| 154 | } |
||
| 155 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.