24 lines
566 B
PHP
24 lines
566 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Apoloz\VideoExtractor\Dto;
|
|
|
|
/**
|
|
* A single playable stream format.
|
|
*/
|
|
final class FormatDto
|
|
{
|
|
public function __construct(
|
|
public readonly string $url,
|
|
public readonly string $formatId,
|
|
public readonly string $ext,
|
|
public readonly ?int $height = null,
|
|
/**
|
|
* Unix timestamp (seconds) at which the URL expires, if known.
|
|
* VK uses an `expires=` (ms) query param; Rutube uses `expire=` (s).
|
|
*/
|
|
public readonly ?int $expiresAt = null,
|
|
) {}
|
|
}
|