1 | <?php |
||
13 | abstract class AbstractCondition implements ConditionInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | protected $criteria; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $key; |
||
24 | |||
25 | /** |
||
26 | * @var mixed |
||
27 | */ |
||
28 | protected $value; |
||
29 | |||
30 | /** |
||
31 | * @param string $key |
||
32 | * @param String $criteria |
||
33 | * @param null | string | array | \Traversable $value |
||
34 | * @throws Exception\InvalidArgumentException |
||
35 | */ |
||
36 | public function __construct($key, $criteria, $value=null) |
||
49 | |||
50 | /** |
||
51 | * @return int |
||
52 | */ |
||
53 | public function getCriteria() |
||
57 | |||
58 | /** |
||
59 | * |
||
60 | * @param int $criteria |
||
61 | * @return mixed |
||
62 | */ |
||
63 | public function setCriteria($criteria) |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | public function getKey() |
||
76 | |||
77 | /** |
||
78 | * @param string $key |
||
79 | * @return $this |
||
80 | */ |
||
81 | public function setKey($key) |
||
86 | |||
87 | /** |
||
88 | * @return mixed |
||
89 | */ |
||
90 | public function getValue() |
||
94 | |||
95 | /** |
||
96 | * @param mixed $value |
||
97 | * @return $this |
||
98 | */ |
||
99 | public function setValue($value) |
||
104 | } |
||
|
|||
105 |
This check marks files that end in a newline character, i.e. an empy line.