56 lines
854 B
PHP
56 lines
854 B
PHP
<?php
|
|
|
|
namespace App\Motion;
|
|
|
|
use DateTime;
|
|
|
|
/**
|
|
* class Snapshot.
|
|
*
|
|
* @author Simon Vieille <simon@deblan.fr>
|
|
*/
|
|
class Snapshot
|
|
{
|
|
protected DateTime $date;
|
|
|
|
protected string $movie;
|
|
|
|
protected string $thumbnail;
|
|
|
|
public function setDate(DateTime $date): self
|
|
{
|
|
$this->date = $date;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDate(): ? \DateTime
|
|
{
|
|
return $this->date;
|
|
}
|
|
|
|
public function setMovie(string $movie): self
|
|
{
|
|
$this->movie = $movie;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getMovie(): ? string
|
|
{
|
|
return $this->movie;
|
|
}
|
|
|
|
public function setThumbnail(string $thumbnail): self
|
|
{
|
|
$this->thumbnail = $thumbnail;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getThumbnail(): ? string
|
|
{
|
|
return $this->thumbnail;
|
|
}
|
|
}
|