src/Library/Reporter/Reporter.php
public function setAdapterType($type)
    {
        $adapter_type = '\Library\Reporter\Adapter\\'.ucfirst($type);
        if (class_exists($adapter_type)) {
            $this->setAdapter(new $adapter_type);
        } else {
            throw new \RuntimeException(
                sprintf('Reporter adapter for type "%s" doesn\'t exist!', $adapter_type)
            );
        }
        return $this;
    }
public function setAdapterType($type)
    {
        $adapter_type = '\Library\Reporter\Adapter\\'.ucfirst($type);
        if (class_exists($adapter_type)) {
            $this->setAdapter(new $adapter_type);
        } else {
            throw new \RuntimeException(
                sprintf('Reporter adapter for type "%s" doesn\'t exist!', $adapter_type)
            );
        }
        return $this;
    }
public function setAdapterType ( $ type ) { $ adapter_type = '\Library\Reporter\Adapter\\' . ucfirst ( $ type ) ; if ( class_exists ( $ adapter_type ) ) { $ this -> setAdapter ( new $ adapter_type ) ; } else { throw new \ RuntimeException ( sprintf ( 'Reporter adapter for type "%s" doesn\'t exist!' , $ adapter_type ) ) ; } return $ this ; }
Set the adapter type to use

@param string $type The type name
@return self $this for method chaining
@throws Throws a RuntimeException if the adapter doesn't exist
Set the adapter type to use