| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 16 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 34 | public function modelProperty() | ||
| 35 |     { | ||
| 36 | $property = ' * @property '; | ||
| 37 | |||
| 38 |         switch ($this->field['linkType']) { | ||
| 39 | case 'Entry': | ||
| 40 | $property .= '\Distilleries\Contentful\Models\Base\ContentfulModel'; | ||
| 41 | break; | ||
| 42 | case 'Asset': | ||
| 43 | $property .= '\Distilleries\Contentful\Models\Asset'; | ||
| 44 | break; | ||
| 45 | default: | ||
| 46 |                 throw new Exception('Unknown Link items type "' . $this->field['items']['type'] . '"'); | ||
| 47 | } | ||
| 48 | |||
| 49 | return $property . ' $' . $this->snakeId(); | ||
| 50 | } | ||
| 52 |