public function setRenderer($renderer)
	{
		if (is_string($renderer))
		{
			$cName = $this->scrub($renderer);

			$invokable = __NAMESPACE__ . '\\Dumper\\' . ucfirst($cName);

			if (!class_exists($invokable))
			{
				throw new RendererNotFoundException(sprintf(
					'%s: failed retrieving renderer via invokable class "%s"; class does not exist',
					__CLASS__ . '::' . __FUNCTION__,
					$invokable
				));
			}
			$renderer = new $invokable;
		}

		if (!($renderer instanceof Renderable))
		{
			throw new InvalidArgumentException(sprintf(
				'%s was unable to fetch renderer or renderer was not an instance of %s',
				get_class($this) . '::' . __FUNCTION__,
				__NAMESPACE__ . '\\Dumper\\Renderable'
			));
		}

		$this->_renderer = $renderer;

		return $this;
	}
public function setRenderer($renderer)
	{
		if (is_string($renderer))
		{
			$cName = $this->scrub($renderer);

			$invokable = __NAMESPACE__ . '\\Dumper\\' . ucfirst($cName);

			if (!class_exists($invokable))
			{
				throw new RendererNotFoundException(sprintf(
					'%s: failed retrieving renderer via invokable class "%s"; class does not exist',
					__CLASS__ . '::' . __FUNCTION__,
					$invokable
				));
			}
			$renderer = new $invokable;
		}

		if (!($renderer instanceof Renderable))
		{
			throw new InvalidArgumentException(sprintf(
				'%s was unable to fetch renderer or renderer was not an instance of %s',
				get_class($this) . '::' . __FUNCTION__,
				__NAMESPACE__ . '\\Dumper\\Renderable'
			));
		}

		$this->_renderer = $renderer;

		return $this;
	}
public function setRenderer ( $ renderer ) { if ( is_string ( $ renderer ) ) { $ cName = $ this -> scrub ( $ renderer ) ; $ invokable = __NAMESPACE__ . '\\Dumper\\' . ucfirst ( $ cName ) ; if ( ! class_exists ( $ invokable ) ) { throw new RendererNotFoundException ( sprintf ( '%s: failed retrieving renderer via invokable class "%s"; class does not exist' , __CLASS__ . '::' . __FUNCTION__ , $ invokable ) ) ; } $ renderer = new $ invokable ; } if ( ! ( $ renderer instanceof Renderable ) ) { throw new InvalidArgumentException ( sprintf ( '%s was unable to fetch renderer or renderer was not an instance of %s' , get_class ( $ this ) . '::' . __FUNCTION__ , __NAMESPACE__ . '\\Dumper\\Renderable' ) ) ; } $ this -> _renderer = $ renderer ; return $ this ; }
Sets the renderer

@param   mixed  $renderer  string or Renderable
@return  object
Sets the renderer