iptv/src/app/Core/RedirectedPlaylist.php

35 lines
572 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
declare(strict_types=1);
namespace App\Core;
/**
* Плейлист с редиректом
*/
class RedirectedPlaylist extends BasicPlaylist
{
/**
* Конструктор
*
* @param string $id
* @param string $redirect_id
*/
public function __construct(
public string $id,
public string $redirect_id,
) {
}
/**
* @inheritDoc
*/
public function toArray(): array
{
return [
'id' => $this->id,
'redirect_id' => $this->redirect_id,
];
}
}