vatDefinitionExportId = $vatDefinitionExportId; $this->type = $type; $this->env = $env; $this->percentage = $percentage; $this->description = $description; } /** * @param $apiResult * * @return static */ public static function fromApiResult(object $apiResult): self { return new self( (int)$apiResult->vat_definition_export_id, $apiResult->_type, $apiResult->_env, (float)$apiResult->percentage, $apiResult->description ); } /** * @return int */ public function getVatDefinitionExportId(): int { return $this->vatDefinitionExportId; } /** * @param int $vatDefinitionExportId */ public function setVatDefinitionExportId(int $vatDefinitionExportId): void { $this->vatDefinitionExportId = $vatDefinitionExportId; } /** * @return string */ public function getType(): string { return $this->type; } /** * @param string $type */ public function setType(string $type): void { $this->type = $type; } /** * @return string */ public function getEnv(): string { return $this->env; } /** * @param string $env */ public function setEnv(string $env): void { $this->env = $env; } /** * @return float */ public function getPercentage(): float { return $this->percentage; } /** * @param float $percentage */ public function setPercentage(float $percentage): void { $this->percentage = $percentage; } /** * @return string */ public function getDescription(): string { return $this->description; } /** * @param string $description */ public function setDescription(string $description): void { $this->description = $description; } }