<?php

namespace Lucent\Channel;

use Lucent\Primitive\Collection;
use Lucent\Schema\Schema;

final class Channel
{
    public string $lucentUrl;
    public string $filesUrl;
    public string $previewTargetUrl;

    /**
     * @param Collection<Schema> $schemas
     */
    function __construct(
        public string     $name,
        public string     $url,
        public string     $previewTarget,
        public string     $generateCommand,
        public Collection $schemas,
        public array      $imageFilters,
        public array      $roles,
    )
    {
        $this->lucentUrl = $url . "/lucent";
        $this->filesUrl = $url . "/storage";
        $this->previewTargetUrl = $url . "/". $previewTarget;
    }

}
