setUrl($url); $protocol->setDisplayName($displayName); $protocol->setColor($color); $protocol->setAccess($access); $protocol->setComponents($components); return $protocol; } #[\Override] public function toProtocol(): array { return [ self::PROP_VERSION => $this->getVersion(), self::PROP_URL => $this->getUrl(), self::PROP_DISPLAY_NAME => $this->getDisplayName(), self::PROP_COLOR => $this->getColor(), self::PROP_ACCESS => $this->getAccess(), self::PROP_COMPONENTS => $this->getComponents(), ]; } #[\Override] public function getVersion(): string { return self::VERSION; } public function getUrl(): string { return $this->url; } public function setUrl(string $url): void { $this->url = $url; } public function getDisplayName(): string { return $this->displayName; } public function setDisplayName(string $displayName): void { $this->displayName = $displayName; } public function getColor(): ?string { return $this->color; } public function setColor(?string $color): void { $this->color = $color; } public function getAccess(): int { return $this->access; } public function setAccess(int $access): void { $this->access = $access; } public function getComponents(): string { return $this->components; } public function setComponents(string $components): void { $this->components = $components; } }