terrarium-web/src/Motion/Snapshot.php
2020-03-10 12:02:21 +01:00

42 lines
589 B
PHP

<?php
namespace App\Motion;
use DateTime;
/**
* class Snapshot.
*
* @author Simon Vieille <simon@deblan.fr>
*/
class Snapshot
{
protected DateTime $date;
protected string $path;
public function setDate(DateTime $date): self
{
$this->date = $date;
return $this;
}
public function getDate(): ? \DateTime
{
return $this->date;
}
public function setPath(string $path): self
{
$this->path = $path;
return $this;
}
public function getPath(): ? string
{
return $this->path;
}
}