public function set($name, $value = null)
    {
        if (is_array($name)) {
            return $this->setValues($name);
        }
        $this->data[$name] = $value;
        return $this;
    }
public function set($name, $value = null)
    {
        if (is_array($name)) {
            return $this->setValues($name);
        }
        $this->data[$name] = $value;
        return $this;
    }
public function set ( $ name , $ value = null ) { if ( is_array ( $ name ) ) { return $ this -> setValues ( $ name ) ; } $ this -> data [ $ name ] = $ value ; return $ this ; }
Sets a variable to the view data model

If you provide an associative array in the $name argument it will be
set all the elements using the key as the variable name on view
data model.

@param string|array $name
@param mixed $value

@return self|ControllerInterface
Sets a variable to the view data model