Integrate snipContent more tightly into snip and cleanup old code
This commit is contained in:
@ -40,10 +40,17 @@ trait TrackedTrait
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setCreatedAtTodayNoSeconds(): self
|
||||
public function setCreatedAtNowNoSeconds(): self
|
||||
{
|
||||
$this->setCreatedAt(DateTime::createFromFormat('Y-m-d H:i', date('Y-m-d H:i')));
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setCreatedAtNow(): self
|
||||
{
|
||||
$this->setCreatedAt(new DateTime());
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user