<?php

declare(strict_types=1);

namespace AC\Type\Url;

use AC\Type\ListScreenId;
use AC\Type\Uri;

class ListTableNetwork extends Uri
{

    public function __construct(string $path, ?ListScreenId $list_id = null)
    {
        parent::__construct(network_admin_url($path));

        if ($list_id) {
            $this->add('layout', (string)$list_id);
        }
    }
}