42 lines
589 B
PHP
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;
|
||
|
}
|
||
|
}
|