public function parse($file)
    {
        if (!is_string($file) || empty($file)) {
            throw new RuntimeException('Invalid filename provided.');
        }

        if (!is_readable($file)) {
            throw new RuntimeException("Cannot open $file for reading.");
        }

        $content = php_strip_whitespace($file);

        return $this->parser->parse($content);
    }