|
@@ 106-110 (lines=5) @@
|
| 103 |
|
sprintf('Method \'%s\' not public \'%s\'', $constraint->fromDateMethod, \get_class($entity)) |
| 104 |
|
); |
| 105 |
|
} |
| 106 |
|
if (!property_exists($entity, $constraint->fromDateProperty)) { |
| 107 |
|
throw new InvalidArgumentException( |
| 108 |
|
sprintf('Property \'%s\' not exist \'%s\'', $constraint->fromDateProperty, \get_class($entity)) |
| 109 |
|
); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
if (!method_exists($entity, $constraint->toDateMethod)) { |
| 113 |
|
throw new InvalidArgumentException( |
|
@@ 122-126 (lines=5) @@
|
| 119 |
|
sprintf('Method \'%s\' not public \'%s\'', $constraint->toDateMethod, \get_class($entity)) |
| 120 |
|
); |
| 121 |
|
} |
| 122 |
|
if (!property_exists($entity, $constraint->toDateProperty)) { |
| 123 |
|
throw new InvalidArgumentException( |
| 124 |
|
sprintf('Property \'%s\' not exist \'%s\'', $constraint->toDateProperty, \get_class($entity)) |
| 125 |
|
); |
| 126 |
|
} |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
private function assertDatesInstanceOf(EntityInterface $entity, NotOverlappedDates $constraint): void |