Add isPublished() method

This commit is contained in:
Oliver Davies 2024-01-17 10:48:44 +00:00
parent 8c3b9438c7
commit 86b5c18f8d

View file

@ -16,6 +16,10 @@ final class PostBuilder {
return new self();
}
public function isPublished(): self {
return $this;
}
public function setCreatedDate(string $time = 'now'): self {
$this->created = new DrupalDateTime($time);