wip
This commit is contained in:
39
src/Model/Ltbxd/LtbxdMovie.php
Normal file
39
src/Model/Ltbxd/LtbxdMovie.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace App\Model\Ltbxd;
|
||||
|
||||
use Symfony\Component\Serializer\Attribute\SerializedName;
|
||||
|
||||
class LtbxdMovie
|
||||
{
|
||||
public function __construct(
|
||||
#[SerializedName('Date')]
|
||||
private readonly \DateTime $date,
|
||||
#[SerializedName('Name')]
|
||||
private readonly string $name,
|
||||
#[SerializedName('Year')]
|
||||
private readonly int $year,
|
||||
#[SerializedName('Letterboxd URI')]
|
||||
private readonly string $ltbxdUri,
|
||||
) {}
|
||||
|
||||
public function getDate(): \DateTime
|
||||
{
|
||||
return $this->date;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getYear(): int
|
||||
{
|
||||
return $this->year;
|
||||
}
|
||||
|
||||
public function getLtbxdUri(): string
|
||||
{
|
||||
return $this->ltbxdUri;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user