public function addField(FieldInterface $field)
    {
        $key = $field->getFieldKey();

        $this->addDependsOn($field->getDataModelDependsOn());
        $this->addEffected($key, $field->getDataModelEffecteds());

        $this->_fields[$key] = $field;

        return $this;
    }
public function addField(FieldInterface $field)
    {
        $key = $field->getFieldKey();

        $this->addDependsOn($field->getDataModelDependsOn());
        $this->addEffected($key, $field->getDataModelEffecteds());

        $this->_fields[$key] = $field;

        return $this;
    }
public function addField ( FieldInterface $ field ) { $ key = $ field -> getFieldKey ( ) ; $ this -> addDependsOn ( $ field -> getDataModelDependsOn ( ) ) ; $ this -> addEffected ( $ key , $ field -> getDataModelEffecteds ( ) ) ; $ this -> _fields [ $ key ] = $ field ; return $ this ; }
Add a field to this dependency

@param FieldInterface $field
@return \Gems\Tracker\Model\FieldDataDependency
Add a field to this dependency