Total Complexity | 1 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class Tag extends Model |
||
21 | { |
||
22 | /** |
||
23 | * Is resource nested behind parentModel |
||
24 | * |
||
25 | * Several of the endpoints are nested behind another model for relationship, but then to |
||
26 | * interact with the specific model, then are not nested. This property will know when to |
||
27 | * keep the specific model nested. |
||
28 | * |
||
29 | * @var bool |
||
30 | */ |
||
31 | protected $nested = true; |
||
32 | |||
33 | /** |
||
34 | * Path to API endpoint. |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $path = '/tag'; |
||
39 | |||
40 | /** |
||
41 | * @return ChildOf |
||
42 | * @throws InvalidRelationshipException |
||
43 | * @throws ModelNotFoundException |
||
44 | * @throws NoClientException |
||
45 | */ |
||
46 | 1 | public function space(): ChildOf |
|
51 |