|
@@ 107-111 (lines=5) @@
|
| 104 |
|
sprintf('Method \'%s\' not exist \'%s\'', $constraint->fromDateMethod, \get_class($entity)) |
| 105 |
|
); |
| 106 |
|
} |
| 107 |
|
if (!\is_callable([$entity, $constraint->fromDateMethod])) { |
| 108 |
|
throw new InvalidArgumentException( |
| 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)) |
|
@@ 118-122 (lines=5) @@
|
| 115 |
|
); |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
if (!method_exists($entity, $constraint->toDateMethod)) { |
| 119 |
|
throw new InvalidArgumentException( |
| 120 |
|
sprintf('Method \'%s\' not exist in \'%s\'', $constraint->toDateMethod, \get_class($entity)) |
| 121 |
|
); |
| 122 |
|
} |
| 123 |
|
if (!\is_callable([$entity, $constraint->toDateMethod])) { |
| 124 |
|
throw new InvalidArgumentException( |
| 125 |
|
sprintf('Method \'%s\' not public \'%s\'', $constraint->toDateMethod, \get_class($entity)) |
|
@@ 123-127 (lines=5) @@
|
| 120 |
|
sprintf('Method \'%s\' not exist in \'%s\'', $constraint->toDateMethod, \get_class($entity)) |
| 121 |
|
); |
| 122 |
|
} |
| 123 |
|
if (!\is_callable([$entity, $constraint->toDateMethod])) { |
| 124 |
|
throw new InvalidArgumentException( |
| 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)) |