public function setVars(array $vars)
    {
        $name = isset($vars['name']) && !empty($vars['name']) ? $vars['name'] : $vars['id'];
        $vars['name'] = $name;

        $this->vars = $vars;

        return $this;
    }
public function setVars(array $vars)
    {
        $name = isset($vars['name']) && !empty($vars['name']) ? $vars['name'] : $vars['id'];
        $vars['name'] = $name;

        $this->vars = $vars;

        return $this;
    }
public function setVars ( array $ vars ) { $ name = isset ( $ vars [ 'name' ] ) && ! empty ( $ vars [ 'name' ] ) ? $ vars [ 'name' ] : $ vars [ 'id' ] ; $ vars [ 'name' ] = $ name ; $ this -> vars = $ vars ; return $ this ; }
Sets the value of vars.

@param array $vars the vars

@return self
Sets the value of vars .