<?php

declare (strict_types=1);
namespace PoP\DOMCrawler;

use DOMNode;
use DOMNodeList;
/** @internal */
class CrawlerFactory implements \PoP\DOMCrawler\CrawlerFactoryInterface
{
    /**
     * @param DOMNodeList|DOMNode|DOMNode[]|string|null $node A Node to use as the base for the crawling
     */
    public function createCrawler(null|DOMNodeList|DOMNode|array|string $node = null, string $uri = null, string $baseHref = null, bool $useHtml5Parser = \true) : \PoP\DOMCrawler\Crawler
    {
        return new \PoP\DOMCrawler\Crawler($node, $uri, $baseHref, $useHtml5Parser);
    }
}
