Skip to content

Commit c5ebc18

Browse files
style(archiving): Boolean getters can also be used as isXXX and not just getXXX
Co-authored-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com> Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 0f3b54b commit c5ebc18

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/Db/UserArchive.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* @method getNodeId(): int
1616
* @method setNodeId(int $value): void
1717
* @method setArchived(bool $value): void
18+
* @method isArchived(): bool
1819
*/
1920
class UserArchive extends EntitySuper {
2021
protected ?string $userId = null;
@@ -28,8 +29,4 @@ public function __construct() {
2829
$this->addType('node_id', 'integer');
2930
$this->addType('archived', 'boolean');
3031
}
31-
32-
public function isArchived(): bool {
33-
return $this->archived;
34-
}
3532
}

0 commit comments

Comments
 (0)