Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class SearchByColumn implements CriteriaInterface |
||
9 | { |
||
10 | protected $column = 'title'; |
||
11 | protected $term = ''; |
||
12 | |||
13 | public function __construct($term, $column) |
||
14 | { |
||
15 | $this->column = $column; |
||
16 | $this->term = $term; |
||
17 | } |
||
18 | |||
19 | public function apply($model, BaseRepositoryInterface $repository) |
||
24 | } |
||
25 | |||
26 | protected function getTerm() |
||
31 |