40 lines
827 B
PHP
40 lines
827 B
PHP
<?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;
|
|
}
|
|
}
|