feat: new Discover section shows watch providers for results
This commit is contained in:
22
src/Tmdb/Dto/WatchProviderDto.php
Normal file
22
src/Tmdb/Dto/WatchProviderDto.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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;
|
||||
}
|
||||
Reference in New Issue
Block a user