|
@@ 112-116 (lines=5) @@
|
| 109 |
|
sprintf('Method \'%s\' not public \'%s\'', $constraint->fromDateMethod, \get_class($entity)) |
| 110 |
|
); |
| 111 |
|
} |
| 112 |
|
if (!property_exists($entity, $constraint->fromDateProperty)) { |
| 113 |
|
throw new InvalidArgumentException( |
| 114 |
|
sprintf('Property \'%s\' not exist \'%s\'', $constraint->fromDateProperty, \get_class($entity)) |
| 115 |
|
); |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
if (!method_exists($entity, $constraint->toDateMethod)) { |
| 119 |
|
throw new InvalidArgumentException( |
|
@@ 128-132 (lines=5) @@
|
| 125 |
|
sprintf('Method \'%s\' not public \'%s\'', $constraint->toDateMethod, \get_class($entity)) |
| 126 |
|
); |
| 127 |
|
} |
| 128 |
|
if (!property_exists($entity, $constraint->toDateProperty)) { |
| 129 |
|
throw new InvalidArgumentException( |
| 130 |
|
sprintf('Property \'%s\' not exist \'%s\'', $constraint->toDateProperty, \get_class($entity)) |
| 131 |
|
); |
| 132 |
|
} |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
private function assertDatesInstanceOf(EntityInterface $entity, NotOverlappedDates $constraint): void |