protected function isDataUpdated($data, $field)
    {
        if (!isset($this->dataNamesMap[$field]['property'])) {
            throw new \DomainException('Field have not mapping with Data instance (field: ' . $field . ')');
        }

        $property = $this->dataNamesMap[$field]['property'];

        return $data->isUpdated($property);
    }
protected function isDataUpdated($data, $field)
    {
        if (!isset($this->dataNamesMap[$field]['property'])) {
            throw new \DomainException('Field have not mapping with Data instance (field: ' . $field . ')');
        }

        $property = $this->dataNamesMap[$field]['property'];

        return $data->isUpdated($property);
    }
protected function isDataUpdated ( $ data , $ field ) { if ( ! isset ( $ this -> dataNamesMap [ $ field ] [ 'property' ] ) ) { throw new \ DomainException ( 'Field have not mapping with Data instance (field: ' . $ field . ')' ) ; } $ property = $ this -> dataNamesMap [ $ field ] [ 'property' ] ; return $ data -> isUpdated ( $ property ) ; }
Check if data value is updated or not

@param  DataAbstract $data
@param  string       $field
@return bool
@throws \DomainException
Check if data value is updated or not