primaryKey = $primaryKey; $this->fieldName = $fieldName; $this->fieldAlias = $fieldAlias; $this->insertFunction = $insertFunction; $this->updateFunction = $updateFunction; $this->selectFunction = $selectFunction; $this->syncWithDb = $syncWithDb; $this->parentTable = $parentTable; if ($this->syncWithDb === false && !is_null($this->updateFunction)) { throw new InvalidArgumentException("You cannot have an updateFunction when syncWithDb is false"); } } public function getFieldMapping(string $propertyName): FieldMapping { $this->propertyName = $propertyName; $fieldMapping = FieldMapping::create($propertyName); $fieldMapping->withFieldName($this->fieldName ?? $propertyName); if (!is_null($this->updateFunction)) { $fieldMapping->withUpdateFunction($this->updateFunction); } if (!is_null($this->selectFunction)) { $fieldMapping->withSelectFunction($this->selectFunction); } if (!is_null($this->insertFunction)) { $fieldMapping->withInsertFunction($this->insertFunction); } if (!is_null($this->fieldAlias)) { $fieldMapping->withFieldAlias($this->fieldAlias); } if ($this->syncWithDb === false) { $fieldMapping->dontSyncWithDb(); } return $fieldMapping; } public function getPropertyName(): ?string { return $this->propertyName; } public function getFieldName(): ?string { return $this->fieldName ?? $this->propertyName; } public function isPrimaryKey(): ?bool { return $this->primaryKey; } public function getParentTable(): ?string { return $this->parentTable; } }__halt_compiler();----SIGNATURE:----LXXpBAIupnljvJrqh9rC589ZR7jFYxeUdHje28ppbWCMqLjbvHSP7h8gglJuu+srZp4QaBB459VCZl6vdrQG5B0pb4I4efEaCni9Xq5l+q1OQybZTZ2yz4Pd15dr+PBt0lo10af8+n9TusKEddkcHuCfa6pLHijgfehS3JTQ/fTjdiyb9D+xbevq59I5nAWej0X/B7KTyEb/hQAiyxIN6BZqJ+Cn5OrN042wtY5U23omS6hYLaZs3bWztjh//fQQ46mGGBC8Htcal2DbkyD4E6k95/aDPz5o60FaUAaYP6mTVchH1kqCExIrfvpeeuqxq+MWguGL2tQbwfoXWtSvZYAjvIjizzOsZles/UiPzKz+/cx8SISQjQfTV1x8bE155UjXvLChTfQcYamnY7g8xF6uBYh/fkR+st5Bfw2dto8S2LUGMS/g5cmJB5kEAMygmTu74I3MAVEF0hF6hb+livlH9xGDZtmDszKc2MbFvwIhPrrtisFxGA1LmOqPUnkVxvvd168jF8o0v6GfykaW9wPMPw2NN4+3I5mMNTiYHtd9DDNX3bMch8Mr27vl5aDUjEh6YlZhSFy0UTzzi3joO0gO9a10QpwQM6rYnb3ZFOcCSW91UpaBPvfoXnQzZeQSOmxfIT0gn36/AS2jeDOTpfxYGVfbpRl73BGtbGSpzrY=----ATTACHMENT:----NDEzMDg0NTc0ODAwMjU3OCA3NTAzNzE3MzM3ODE3Njk4IDYyOTAyMTcxMzk0MTE5MDA=