*/ public const array EAST_MALAYSIA = ['Sabah', 'Sarawak', 'Labuan']; public function quote(Store $store, int $subtotal, string $state): int { if ($store->free_shipping_over !== null && $subtotal >= $store->free_shipping_over) { return 0; } return in_array($state, self::EAST_MALAYSIA, true) ? $store->shipping_east : $store->shipping_west; } }