2020-03-10 12:02:21 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Motion;
|
|
|
|
|
|
|
|
use DateTime;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* class Snapshot.
|
|
|
|
*
|
|
|
|
* @author Simon Vieille <simon@deblan.fr>
|
|
|
|
*/
|
|
|
|
class Snapshot
|
|
|
|
{
|
|
|
|
protected DateTime $date;
|
|
|
|
|
2020-04-06 23:11:55 +02:00
|
|
|
protected string $picture;
|
|
|
|
|
2020-03-21 18:39:12 +01:00
|
|
|
protected string $movie;
|
2020-04-04 19:05:04 +02:00
|
|
|
|
2020-03-21 18:39:12 +01:00
|
|
|
protected string $thumbnail;
|
2020-03-10 12:02:21 +01:00
|
|
|
|
|
|
|
public function setDate(DateTime $date): self
|
|
|
|
{
|
|
|
|
$this->date = $date;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getDate(): ? \DateTime
|
|
|
|
{
|
|
|
|
return $this->date;
|
|
|
|
}
|
|
|
|
|
2020-04-06 23:11:55 +02:00
|
|
|
public function setPicture(string $picture): self
|
|
|
|
{
|
|
|
|
$this->picture = $picture;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPicture(): ? string
|
|
|
|
{
|
|
|
|
return $this->picture;
|
|
|
|
}
|
|
|
|
|
2020-03-21 18:39:12 +01:00
|
|
|
public function setMovie(string $movie): self
|
2020-03-10 12:02:21 +01:00
|
|
|
{
|
2020-03-21 18:39:12 +01:00
|
|
|
$this->movie = $movie;
|
2020-03-10 12:02:21 +01:00
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2020-03-21 18:39:12 +01:00
|
|
|
public function getMovie(): ? string
|
2020-03-10 12:02:21 +01:00
|
|
|
{
|
2020-03-21 18:39:12 +01:00
|
|
|
return $this->movie;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setThumbnail(string $thumbnail): self
|
|
|
|
{
|
|
|
|
$this->thumbnail = $thumbnail;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getThumbnail(): ? string
|
|
|
|
{
|
|
|
|
return $this->thumbnail;
|
2020-03-10 12:02:21 +01:00
|
|
|
}
|
|
|
|
}
|