id = $id; $this->name = $name; $this->hasPickupPoints = $hasPickupPoints; $this->hasDirectLabel = $hasDirectLabel; $this->requiresSeparateHouseNumber = $requiresSeparateHouseNumber; $this->requiresCustomsDeclarations = $requiresCustomsDeclarations; $this->requiresEmail = $requiresEmail; $this->requiresPhone = $requiresPhone; $this->requiresSize = $requiresSize; $this->supportsCod = $supportsCod; $this->country = $country; $this->currency = $currency; $this->maxWeight = $maxWeight; $this->isDeleted = $isDeleted; $this->ageVerification = $ageVerification; } /** * Returns all properties as array. * * @return array */ public function __toArray(): array { return get_object_vars( $this ); } /** * Gets carrier id. * * @return string */ public function getId(): string { return $this->id; } /** * Gets carrier name. * * @return string */ public function getName(): string { return $this->name; } /** * Gets carrier hasPickupPoints. * * @return bool */ public function hasPickupPoints(): bool { return $this->hasPickupPoints; } /** * Gets carrier hasCarrierDirectLabel. * * @return bool */ public function hasDirectLabel(): bool { return $this->hasDirectLabel; } /** * Gets carrier separateHouseNumber. * * @return bool */ public function requiresSeparateHouseNumber(): bool { return $this->requiresSeparateHouseNumber; } /** * Gets carrier customsDeclarations. * * @return bool */ public function requiresCustomsDeclarations(): bool { return $this->requiresCustomsDeclarations; } /** * Gets carrier requiresEmail. * * @return bool */ public function requiresEmail(): bool { return $this->requiresEmail; } /** * Gets carrier requiresPhone. * * @return bool */ public function requiresPhone(): bool { return $this->requiresPhone; } /** * Gets carrier requiresSize. * * @return bool */ public function requiresSize(): bool { return $this->requiresSize; } /** * Gets carrier supportsCod. * * @return bool */ public function supportsCod(): bool { return $this->supportsCod; } /** * Gets carrier country. * * @return string */ public function getCountry(): string { return $this->country; } /** * Gets carrier currency. * * @return string */ public function getCurrency(): string { return $this->currency; } /** * Gets carrier maxWeight. * * @return float */ public function getMaxWeight(): float { return $this->maxWeight; } /** * Gets carrier isDeleted. * * @return bool */ public function isDeleted(): bool { return $this->isDeleted; } /** * Tells if allows age verification. * * @return bool */ public function supportsAgeVerification(): bool { return $this->ageVerification; } }