public function setParam($param, $value = null)
    {
        if (is_string($param)) {
            $this->_params[$param] = $value;

            return $this;
        }

        if (is_array($param)) {
            foreach ($param as $key => $value) {
                $this->_params[$key] = $value;
            }
        }

        return $this;
    }
public function setParam($param, $value = null)
    {
        if (is_string($param)) {
            $this->_params[$param] = $value;

            return $this;
        }

        if (is_array($param)) {
            foreach ($param as $key => $value) {
                $this->_params[$key] = $value;
            }
        }

        return $this;
    }
public function setParam ( $ param , $ value = null ) { if ( is_string ( $ param ) ) { $ this -> _params [ $ param ] = $ value ; return $ this ; } if ( is_array ( $ param ) ) { foreach ( $ param as $ key => $ value ) { $ this -> _params [ $ key ] = $ value ; } } return $ this ; }
Set one or set of parameters.

@param mixed $param A parameter name or an array of parameters to set
@param mixed $value The parameter value to set

@return AbstractRenderer The current renderer
Set one or set of parameters .