| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function create(string $resourceClass, string $property, array $options = []): ApiProperty |
||
| 36 | { |
||
| 37 | $propertyMetadata = $this->decorated->create($resourceClass, $property, $options); |
||
| 38 | if ('componentPositions' === $property && !is_a($resourceClass, AbstractComponent::class, true)) { |
||
| 39 | return $propertyMetadata; |
||
| 40 | } |
||
| 41 | |||
| 42 | return $propertyMetadata->withWritableLink(true); |
||
| 43 | } |
||
| 45 |