PhpBench\Formatter\ClassLoader::load PHP Метод

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

public load ( $filename )
    public function load($filename)
    {
        if (!file_exists($filename)) {
            throw new \InvalidArgumentException(sprintf('Class file "%s" does not exist.', $filename));
        }
        $contents = file_get_contents($filename);
        if ($error = $this->parser->lint($contents)) {
            throw $error;
        }
        return json_decode($contents, true);
    }