[web-php] master: Fix: Remove unused methods
| From: | Andreas Möller via GitHub | Date: | Mon, 11 Jul 2022 16:48:13 +0000 |
| Subject: | [web-php] master: Fix: Remove unused methods | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-30328@lists.php.net to get a copy of this message | ||
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 {