| 1 | <?php |
||
| 18 | abstract class AbstractConstraint implements ConstraintInterface { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var \DateTime |
||
| 22 | */ |
||
| 23 | protected $start_date; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var \DateTime |
||
| 27 | */ |
||
| 28 | protected $end_date; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | protected $affected_units; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var CalendarResponse |
||
| 37 | */ |
||
| 38 | protected $calendar_response; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var array |
||
| 42 | */ |
||
| 43 | protected $units = array(); |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function setStartDate(\DateTime $start_date) { |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | public function getStartDate() { |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | public function setEndDate(\DateTime $end_date) { |
||
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | public function getEndDate() { |
||
| 72 | |||
| 73 | /** |
||
| 74 | * {@inheritdoc} |
||
| 75 | */ |
||
| 76 | public function getAffectedUnits() { |
||
| 79 | |||
| 80 | /** |
||
| 81 | * {@inheritdoc} |
||
| 82 | */ |
||
| 83 | public function getUnits() { |
||
| 91 | |||
| 92 | /** |
||
| 93 | * {@inheritdoc} |
||
| 94 | */ |
||
| 95 | public function applyConstraint(CalendarResponse &$calendar_response) { |
||
| 98 | |||
| 99 | } |
||
| 100 |