| 1 | <?php |
||
| 5 | class TextCriteria implements CriteriaInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $text; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param string $text |
||
| 14 | */ |
||
| 15 | 9 | public function __construct($text = null) |
|
| 19 | |||
| 20 | /** |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 5 | public function getText() |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $text |
||
| 30 | * |
||
| 31 | * @return TextCriteria |
||
| 32 | */ |
||
| 33 | 7 | public function setText($text) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | 8 | public function shouldBeApplied() |
|
| 47 | } |
||
| 48 |