| 1 | <?php |
||
| 19 | class InThePast extends AbstractDateTimeComparator { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Holds the amount of parameters. |
||
| 23 | */ |
||
| 24 | protected $amountOfParameters = 0; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Holds whether to parse the parameters as \DateTimes so the child class |
||
| 28 | * can decide. |
||
| 29 | */ |
||
| 30 | protected $parseParametersAsDateTimes = false; |
||
|
|
|||
| 31 | |||
| 32 | /** |
||
| 33 | * Holds the type of the validator. |
||
| 34 | */ |
||
| 35 | protected $type = 'inThePast'; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | protected function isValidComparison(\DateTime $date, array $datetimes, array $parameters) { |
||
| 44 | |||
| 45 | } |
||
| 46 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.