public function set($name, array $data = [])
    {
        $this->setName($name);
        $this->setData($data);

        return $this->isValid();
    }
public function set($name, array $data = [])
    {
        $this->setName($name);
        $this->setData($data);

        return $this->isValid();
    }
public function set ( $ name , array $ data = [ ] ) { $ this -> setName ( $ name ) ; $ this -> setData ( $ data ) ; return $ this -> isValid ( ) ; }
Set command and optionally set data
- return if set command is valid.

@param string $name
@param array  $data [= []]

@return bool
Set command and optionally set data - return if set command is valid .