entity = $lead; $this->isNew = $isNew; } public function getLead(): Lead { return $this->entity; } public function setLead(Lead $lead): void { $this->entity = $lead; } public function isAlreadyProcessedInBatch(): bool { return $this->alreadyProcessedInBatch; } public function setAlreadyProcessedInBatch(bool $alreadyProcessedInBatch): void { $this->alreadyProcessedInBatch = $alreadyProcessedInBatch; } }