| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class AdultReleaseContext |
||
| 9 | { |
||
| 10 | public function __construct( |
||
| 11 | public readonly int $releaseId, |
||
| 12 | public readonly string $searchName, |
||
| 13 | public readonly string $cleanTitle, |
||
| 14 | public readonly ?string $guid = null, |
||
| 15 | ) {} |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create from a Release model array/object. |
||
| 19 | */ |
||
| 20 | public static function fromRelease(array|object $release, string $cleanTitle): self |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Create from a movie title string. |
||
| 34 | */ |
||
| 35 | public static function fromTitle(string $title): self |
||
| 42 | ); |
||
| 43 | } |
||
| 46 |