| @@ 73-81 (lines=9) @@ | ||
| 70 | ); |
|
| 71 | } |
|
| 72 | ||
| 73 | if (!is_null($fromProperty) |
|
| 74 | && !($fromProperty instanceof ResourceProperty) |
|
| 75 | ) { |
|
| 76 | throw new \InvalidArgumentException( |
|
| 77 | Messages::resourceAssociationTypeEndPropertyMustBeNullOrInstanceofResourceProperty( |
|
| 78 | '$fromProperty' |
|
| 79 | ) |
|
| 80 | ); |
|
| 81 | } |
|
| 82 | ||
| 83 | if (!is_null($resourceProperty) |
|
| 84 | && !($resourceProperty instanceof ResourceProperty) |
|
| @@ 83-91 (lines=9) @@ | ||
| 80 | ); |
|
| 81 | } |
|
| 82 | ||
| 83 | if (!is_null($resourceProperty) |
|
| 84 | && !($resourceProperty instanceof ResourceProperty) |
|
| 85 | ) { |
|
| 86 | throw new \InvalidArgumentException( |
|
| 87 | Messages::resourceAssociationTypeEndPropertyMustBeNullOrInstanceofResourceProperty( |
|
| 88 | '$resourceProperty' |
|
| 89 | ) |
|
| 90 | ); |
|
| 91 | } |
|
| 92 | ||
| 93 | $this->name = $name; |
|
| 94 | $this->resourceType = $resourceType; |
|