| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function transform(Attribute $attribute): array |
||
| 19 | { |
||
| 20 | return $this->escape([ |
||
| 21 | 'id' => (string) $attribute->getRouteKey(), |
||
| 22 | 'name' => (string) $attribute->name, |
||
| 23 | 'type' => (string) $attribute->type, |
||
| 24 | 'group' => (string) $attribute->group, |
||
| 25 | 'is_collection' => (bool) $attribute->is_collection, |
||
| 26 | 'is_required' => (bool) $attribute->is_required, |
||
| 27 | 'created_at' => (string) $attribute->created_at, |
||
| 28 | 'updated_at' => (string) $attribute->updated_at, |
||
| 29 | ]); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |