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:----DY9Wbk4Wk41/LjO743oPMRGb5zsfqbgOCtM9PZRvaTLnU8qBJmJVQa7Eh1lI3lGd097k+hfOmTXkvCSaZh7Phscqafu6TS+vwh/1yhchmHYfrp9iElY5Ojv3UtEJ057SgLZDQdsQ1CtA4GUR1tt1znk4uKTxWnJYZEjmgoxt8M4wiM+bmE2EN7V2T9InVitjyHd60F9SLQoP45Izh3lBBYHYehs0cV3ujGXbxk2v/WGgPRoBTIUqpD05cr9FYKB7qVl57XDU4Tqc3/SJA3tni/kSEwXCIYfyJBwazaih8oZFnHe7YB+/+aLVLrFrzO9aWCSFyCoyv5OCCRPYzGoc5bT5y3RfnMeex0vJDp/Q1oR6dlILoLLiDZzCbvag/e/nOjskCt2XZlmI1i7YCq2qm5OQXAfyEtvljb/KbvVWEhKRYNU0PDawN6cbJULdykF1cJZ9A2vq84dGoZvLOP3NEBBd1LZOgicxuwhkgoBTGPL3r6E6cZsAJj6KYWsf7DxRL4RRxQt/iaMw+L/dlEs0fKCEPP2vIfNRtJPZAUxhd5h7AFcJdloFUvBkxzyo30+cx7pzGOFEI10IM3kzLnstqn18BEwC9u+EAe7QWZDRU0WNY4PttCd4iAg2jy5MZ8ynttkc5JACC8yGIzuM9naPUaK+aJiASigIIpcqAZCNWu0=----ATTACHMENT:----NDgxODQ3NTU1MDU3MjUwMSA0ODM2MjM5NTg4Njc0MzA3IDY3MjQ3NDc5NzcwMTkwODM=