The property id does not exist on Signifly\Shopify\REST\Resources\ProductResource. Since you implemented __get, consider adding a @property annotation.
The property id does not exist on Signifly\Shopify\REST\Resources\ProductResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
17
}
18
19
public function publish(): self
20
{
21
return $this->update(['published' => true]);
22
}
23
24
public function unpublish(): self
25
{
26
return $this->update(['published' => false]);
27
}
28
29
public function getImages(array $params = []): Collection
The property id does not exist on Signifly\Shopify\REST\Resources\ProductResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
32
}
33
34
public function getMetafields(array $params = []): Collection
The property id does not exist on Signifly\Shopify\REST\Resources\ProductResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
37
}
38
39
public function getVariants(array $params = []): Collection
The property id does not exist on Signifly\Shopify\REST\Resources\ProductResource. Since you implemented __get, consider adding a @property annotation.
The property images does not exist on Signifly\Shopify\REST\Resources\ProductResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
47
->map(fn ($attributes) => new ImageResource($attributes, $this->shopify));
The property variants does not exist on Signifly\Shopify\REST\Resources\ProductResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
53
->map(fn ($attributes) => new VariantResource($attributes, $this->shopify));