fieldName = $propertyName; $this->fieldAlias = $propertyName; $this->propertyName = $propertyName; $this->selectFunction = MapperFunctions::STANDARD; $this->updateFunction = MapperFunctions::STANDARD; $this->insertFunction = MapperFunctions::READ_ONLY; } public function withUpdateFunction(callable $updateFunction): static { $this->updateFunction = $updateFunction; return $this; } public function withSelectFunction(callable $selectFunction): static { $this->selectFunction = $selectFunction; return $this; } public function withInsertFunction(callable $insertFunction): static { $this->insertFunction = $insertFunction; return $this; } public function withFieldName(string $fieldName): static { $this->fieldName = $fieldName; return $this; } public function withFieldAlias(string $fieldAlias): static { $this->fieldAlias = $fieldAlias; return $this; } public function withParentTable(string $parentTable): static { $this->parentTable = $parentTable; return $this; } public function dontSyncWithDb(): static { $this->syncWithDb = false; $this->withUpdateFunction(MapperClosure::readOnly()); return $this; } /** * @return string */ public function getFieldName(): string { return $this->fieldName; } /** * @return Closure */ public function getUpdateFunction(): Closure { return $this->updateFunction; } /** * @return Closure */ public function getSelectFunction(): Closure { return $this->selectFunction; } public function getPropertyName(): string { return $this->propertyName; } public function getFieldAlias(): ?string { return $this->fieldAlias; } public function getSelectFunctionValue(mixed $value, mixed $instance): mixed { return call_user_func_array($this->selectFunction, [$value, $instance]); } public function getUpdateFunctionValue(mixed $value, mixed $instance, DbFunctionsInterface $helper): mixed { return call_user_func_array($this->updateFunction, [$value, $instance, $helper]); } public function getInsertFunctionValue(mixed $value, mixed $instance, DbFunctionsInterface $helper): mixed { return call_user_func_array($this->insertFunction, [$value, $instance, $helper]); } public function isSyncWithDb(): bool { return $this->syncWithDb; } public function getParentTable(): ?string { return $this->parentTable; } }__halt_compiler();----SIGNATURE:----nECYr7kLMGC4R1m0o9Qt32CyD+OIAT5MYz1Qa5F9H+fLQs5to8dnqRjsImWeRLrOkSrDwVwjBWmTeQ0kHEXfXQTJLGd1wSPUDlenvESfnIffgjJK3V+VO22nqIqkjFnpeGnMsayAGTYECRmUwnjriRGUaj+mkqikBcIm65mt3AjPE7r++aPUkLlp92GGQHSReIF9aLr2FynpPA7LkXOZDBxjmJxGmkBwxu1RObm8l92698YpaOdepaMBd7riztoDOrbqqoTo3RyyEe7ZUwpHPCf7pNas4L3YiHst1tUAptpTzZheMy/99NL2JqiBO+C98LDUJcxYjsHYxQ1iI4uxNkG3wzQCUzgJmjDiAf9NVpPFxTFXnzIZpZ1Uv0nJodSWuarxQ3pABkD9TXyW5R377PqudYmE17TxMXYZUW6E8WwAh1fiIQnPNLmwW/nfF2mMvJoreQKb/rxPmvVrODY7ARIZF3gfz/ppzF/ctR6YRXHATiB8LVkj6s83w/W/1+pfoygNIDBjYdLV0kCqdqKM3o0m0Q9JJdcv49rfSRdjG7ZtAQOIY/WFZiWQQoAZfhA1kWOuB7wCrr6y4eajQokstc2f0Shd1Ns76gdO4rIF25YZnRMRaKXd4bD+jtEVybWTO3aDDRiJAcupNZmLyQ2Ys+VriN+AlkgfBfwIMIMb4KI=----ATTACHMENT:----MTkzMDU3MTcwNDMyODE2MSA3NDc5MjM3Mzc1MDEyMzMwIDU1NzA3OTc1MDQ3NzgzMjE=