PhpBench\Report\Renderer\XsltRenderer::__construct PHP Метод

__construct() публичный Метод

public __construct ( Formatter $formatter )
$formatter PhpBench\Formatter\Formatter
    public function __construct(Formatter $formatter)
    {
        if (!extension_loaded($ext = 'xsl')) {
            throw new \RuntimeException(sprintf('The XsltRenderer requires the `%s` extension to be loaded', $ext));
        }
        $this->formatter = $formatter;
    }