| Total Complexity | 4 | 
| Total Lines | 23 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 10 | trait WithTypeDeclaration  | 
            ||
| 11 | { | 
            ||
| 12 | /** @var TypeDeclaration */  | 
            ||
| 13 | protected $type;  | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * An attribute is a reference if it has a type and it's not a built-in type  | 
            ||
| 17 | *  | 
            ||
| 18 | * This is used when building the digraph and the option `createAssociations` is set  | 
            ||
| 19 | */  | 
            ||
| 20 | 30 | public function isAReference(): bool  | 
            |
| 21 |     { | 
            ||
| 22 | 30 | return $this->hasTypeDeclaration() && !$this->type->isBuiltIn();  | 
            |
| 23 | }  | 
            ||
| 24 | |||
| 25 | 42 | public function hasTypeDeclaration(): bool  | 
            |
| 26 |     { | 
            ||
| 27 | 42 | return $this->type->isPresent();  | 
            |
| 28 | }  | 
            ||
| 29 | |||
| 30 | 15 | public function type(): TypeDeclaration  | 
            |
| 33 | }  | 
            ||
| 34 | }  | 
            ||
| 35 |