mirror of https://github.com/nextcloud/calendar
a setter should always return this !!!!11oneoneoneeleven
This commit is contained in:
parent
c48ba2e861
commit
1cf8bb5fd2
|
@ -145,6 +145,7 @@ abstract class Entity {
|
|||
|
||||
if (strpos($methodName, 'set') === 0){
|
||||
$this->setter($attr, $args);
|
||||
return $this;
|
||||
} elseif (strpos($methodName, 'get') === 0) {
|
||||
return $this->getter($attr);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue