[ 'method' => 'GET', 'path' => '/dolibarr/contract-lines/{contractId}', 'requirements' => ['contractId' => '\d+'], 'normalization_context' => [ 'groups' => ['dolibarr_get'] ] ], ] )] class DolibarrContractLine { #[ApiProperty(identifier: true)] #[Groups('dolibarr_get')] private int $id; /** * Id of the contract's line */ #[Groups('dolibarr_get')] private int $contractId; /** * Reference of the contracted service ( = product's reference) */ #[Groups('dolibarr_get')] private string $serviceRef; /** * Label of the contracted service */ #[Groups('dolibarr_get')] private string $serviceLabel; /** * Service active from date ... */ #[Groups('dolibarr_get')] private \DateTime $dateStart; /** * Service active to date ... */ #[Groups('dolibarr_get')] private \DateTime $dateEnd; public function getId(): int { return $this->id; } public function setId(int $id): void { $this->id = $id; } public function getContractId(): int { return $this->contractId; } public function setContractId(int $contractId): void { $this->contractId = $contractId; } public function getServiceRef(): string { return $this->serviceRef; } public function setServiceRef(string $serviceRef): void { $this->serviceRef = $serviceRef; } public function getServiceLabel(): string { return $this->serviceLabel; } public function setServiceLabel(string $serviceLabel): void { $this->serviceLabel = $serviceLabel; } public function getDateStart(): \DateTime { return $this->dateStart; } public function setDateStart(\DateTime $dateStart): void { $this->dateStart = $dateStart; } public function isDateEnd(): \DateTime { return $this->dateEnd; } public function setDateEnd(\DateTime $dateEnd): void { $this->dateEnd = $dateEnd; } }