product->is_orderable; } public function viewPrices(null | User | Customer $user, ProductWithPricingDto $product): bool { if (! ($user instanceof Customer || $user instanceof User)) { return false; } return $product->product->status; } public function viewPublished(null | User | Customer $_, ProductWithPricingDto $product): bool { return $product->product->status; } }