|
@@ 101-105 (lines=5) @@
|
| 98 |
|
sprintf('Method \'%s\' not exist \'%s\'', $constraint->fromDateMethod, \get_class($entity)) |
| 99 |
|
); |
| 100 |
|
} |
| 101 |
|
if (!\is_callable([$entity, $constraint->fromDateMethod])) { |
| 102 |
|
throw new InvalidArgumentException( |
| 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)) |
|
@@ 112-116 (lines=5) @@
|
| 109 |
|
); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
if (!method_exists($entity, $constraint->toDateMethod)) { |
| 113 |
|
throw new InvalidArgumentException( |
| 114 |
|
sprintf('Method \'%s\' not exist in \'%s\'', $constraint->toDateMethod, \get_class($entity)) |
| 115 |
|
); |
| 116 |
|
} |
| 117 |
|
if (!\is_callable([$entity, $constraint->toDateMethod])) { |
| 118 |
|
throw new InvalidArgumentException( |
| 119 |
|
sprintf('Method \'%s\' not public \'%s\'', $constraint->toDateMethod, \get_class($entity)) |
|
@@ 117-121 (lines=5) @@
|
| 114 |
|
sprintf('Method \'%s\' not exist in \'%s\'', $constraint->toDateMethod, \get_class($entity)) |
| 115 |
|
); |
| 116 |
|
} |
| 117 |
|
if (!\is_callable([$entity, $constraint->toDateMethod])) { |
| 118 |
|
throw new InvalidArgumentException( |
| 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)) |