terrarium-web/src/Motion/Snapshot.php

56 lines
854 B
PHP
Raw Normal View History

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-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-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
}
}