This commit is contained in:
thibaud-leclere
2026-01-13 21:26:00 +01:00
parent d4a3d32e0a
commit e5d5fe4343
14 changed files with 2373 additions and 2169 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace App\Context\TMDB;
abstract class AbstractSearchContext
{
public function __construct(
protected int $page,
protected array $results,
protected int $total_pages,
protected int $total_results,
) {}
public function getPage(): int
{
return $this->page;
}
public function getResults(): array
{
return $this->results;
}
public function getTotalPages(): int
{
return $this->total_pages;
}
public function getTotalResults(): int
{
return $this->total_results;
}
}

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Context\TMDB;
use App\Model\TMDB\TMDBMovie;
class MovieSearchContext extends AbstractSearchContext
{
/**
* @var TMDBMovie[]
*/
protected array $results;
}