src/NodeSource.php
public function setAttribute($key, $value)
    {
        if ($this->isBaseAttribute($key))
        {
            return parent::setAttribute($key, $value);
        } else
        {
            return $this->getSource()->setAttribute($key, $value);
        }
    }
public function setAttribute($key, $value)
    {
        if ($this->isBaseAttribute($key))
        {
            return parent::setAttribute($key, $value);
        } else
        {
            return $this->getSource()->setAttribute($key, $value);
        }
    }
public function setAttribute ( $ key , $ value ) { if ( $ this -> isBaseAttribute ( $ key ) ) { return parent :: setAttribute ( $ key , $ value ) ; } else { return $ this -> getSource ( ) -> setAttribute ( $ key , $ value ) ; } }
Sets a model attribute

@param string $key
@param mixed $value
@return void
Sets a model attribute