a setter should always return this !!!!11oneoneoneeleven

This commit is contained in:
Georg Ehrke 2014-04-24 20:09:45 +02:00
parent c48ba2e861
commit 1cf8bb5fd2
1 changed files with 1 additions and 0 deletions

View File

@ -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 {