23 lines
538 B
PHP
23 lines
538 B
PHP
<?php
|
|
|
|
namespace App\Tmdb\Dto;
|
|
|
|
use Symfony\Component\Serializer\Attribute\SerializedPath;
|
|
|
|
class WatchProviderDto
|
|
{
|
|
const BASE_LOGO_PATH = 'https://image.tmdb.org/t/p/w185';
|
|
|
|
#[SerializedPath('[provider_id]')]
|
|
public int $id;
|
|
#[SerializedPath('[display_priority]')]
|
|
public int $displayPriority;
|
|
#[SerializedPath('[provider_name]')]
|
|
public string $name;
|
|
#[SerializedPath('[logo_path]')]
|
|
public string $logo {
|
|
set(string $value) => self::BASE_LOGO_PATH . $value;
|
|
}
|
|
public string $url;
|
|
}
|