public function mappedVia(callable $phpToDbConverter, callable $dbToPhpConverter)
    {
        $this->phpToDbConverter = $phpToDbConverter;
        $this->dbToPhpConverter = $dbToPhpConverter;

        return $this;
    }
public function mappedVia(callable $phpToDbConverter, callable $dbToPhpConverter)
    {
        $this->phpToDbConverter = $phpToDbConverter;
        $this->dbToPhpConverter = $dbToPhpConverter;

        return $this;
    }
public function mappedVia ( callable $ phpToDbConverter , callable $ dbToPhpConverter ) { $ this -> phpToDbConverter = $ phpToDbConverter ; $ this -> dbToPhpConverter = $ dbToPhpConverter ; return $ this ; }
Defines the callbacks to use to map the property values
to and from the database.

@param callable $phpToDbConverter
@param callable $dbToPhpConverter

@return static
Defines the callbacks to use to map the property values to and from the database .