protected function setDataValue($data, $field, $value)
    {
        if (!isset($this->dataNamesMap[$field]['set'])) {

            if (true === $this->ignoreNotMappedFields) {
                return $this;
            }

            throw new \DomainException('Field have not mapping with Data instance (field: ' . $field . ')');
        }

        $method = $this->dataNamesMap[$field]['set'];

        $data->{$method}($value);

        return $this;
    }
protected function setDataValue($data, $field, $value)
    {
        if (!isset($this->dataNamesMap[$field]['set'])) {

            if (true === $this->ignoreNotMappedFields) {
                return $this;
            }

            throw new \DomainException('Field have not mapping with Data instance (field: ' . $field . ')');
        }

        $method = $this->dataNamesMap[$field]['set'];

        $data->{$method}($value);

        return $this;
    }
protected function setDataValue ( $ data , $ field , $ value ) { if ( ! isset ( $ this -> dataNamesMap [ $ field ] [ 'set' ] ) ) { if ( true === $ this -> ignoreNotMappedFields ) { return $ this ; } throw new \ DomainException ( 'Field have not mapping with Data instance (field: ' . $ field . ')' ) ; } $ method = $ this -> dataNamesMap [ $ field ] [ 'set' ] ; $ data -> { $ method } ( $ value ) ; return $ this ; }
Set value into DataAbstract instance based on field value

@param  DataAbstract $data
@param  string       $field
@param  mixed        $value
@return mixed
@throws \DomainException
Set value into DataAbstract instance based on field value