Author: Andreas Möller (localheinz) Committer: GitHub (web-flow) Pusher: cmb69 Date: 2022-07-11T18:41:46+02:00
Commit: https://github.com/php/web-php/commit/e45bf2b782f887fec2dc84c2143b198dfae48943 Raw diff: https://github.com/php/web-php/commit/e45bf2b782f887fec2dc84c2143b198dfae48943.diff Fix: Remove unused methods Closes GH-607. Changed paths: M src/News/Entry.php Diff: diff --git a/src/News/Entry.php b/src/News/Entry.php index e8f525de8..c3b01c8d1 100755 --- a/src/News/Entry.php +++ b/src/News/Entry.php @@ -21,9 +21,6 @@ class Entry { protected $title = ''; - public function getTitle(): string { - return $this->title; - } public function setTitle(string $title): self { $this->title = $title; @@ -49,9 +46,7 @@ public function addCategory(string $cat): self { } return $this; } - public function getCategories(): array { - return $this->categories; - } + public function isConference(): bool { return (bool)array_intersect($this->categories, ['cfp', 'conferences']); } @@ -61,9 +56,6 @@ public function setConfTime(int $time): self { $this->conf_time = $time; return $this; } - public function getConfTime(): int { - return $this->conf_time; - } protected $image = []; public function setImage(string $path, string $title, ?string $link): self { @@ -80,9 +72,6 @@ public function setImage(string $path, string $title, ?string $link): self { ]; return $this; } - public function getImage(): array { - return $this->image; - } protected $content = ''; public function setContent(string $content): self { @@ -92,9 +81,6 @@ public function setContent(string $content): self { $this->content = $content; return $this; } - public function getContent(): string { - return $this->content; - } protected $id = ''; private static function selectNextId(): string { -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php