samdark\sitemap\Sitemap::__construct PHP Method

__construct() public method

public __construct ( string $filePath )
$filePath string path of the file to write to
    public function __construct($filePath)
    {
        $dir = dirname($filePath);
        if (!is_dir($dir)) {
            throw new \InvalidArgumentException("Please specify valid file path. Directory not exists. You have specified: {$dir}.");
        }
        $this->filePath = $filePath;
    }