Adding return types

This commit is contained in:
Oliver Davies 2024-01-17 10:46:20 +00:00
parent de5ffc1aee
commit 71e70a56c5

View file

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