| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class IsUncertainDate implements ConstraintInterface |
||
| 22 | { |
||
| 23 | /** |
||
|
1 ignored issue
–
show
|
|||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $varName; |
||
| 27 | |||
| 28 | |||
| 29 | private $match; |
||
| 30 | |||
| 31 | 7 | public function __construct($value, $match = "all") |
|
| 32 | { |
||
| 33 | 7 | $this->varName = $value; |
|
| 34 | 7 | $this->match = $match; |
|
| 35 | 7 | } |
|
| 36 | |||
| 37 | /** |
||
|
1 ignored issue
–
show
|
|||
| 38 | * @param $value |
||
|
1 ignored issue
–
show
|
|||
| 39 | * @param int|null $citationNumber |
||
|
2 ignored issues
–
show
|
|||
| 40 | * @return bool |
||
|
1 ignored issue
–
show
|
|||
| 41 | */ |
||
| 42 | 7 | public function validate($value, $citationNumber = null) |
|
| 51 | } |
||
| 52 | } |