| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | protected function getParentConstraints() |
||
| 52 | { |
||
| 53 | try { |
||
| 54 | if ($parentClass = $this->reflection->getDeclaringClass()->getParentClass()) { |
||
| 55 | $parentProperty = $parentClass->getProperty($this->reflection->getName()); |
||
| 56 | } |
||
| 57 | } catch (Throwable $exception) { |
||
| 58 | throw new ConstraintInheritanceException("There is no parent property to inherit from"); |
||
| 59 | } |
||
| 60 | |||
| 61 | return (new static($parentProperty, (new AnnotationResolver($parentProperty))->resolve()))->resolve(); |
||
| 62 | } |
||
| 65 | } |