I\'m trying to make functions like empty() and isset() work with data returned by methods.
empty()
isset()
What I have so far:
abstract cla
A bit more option not to depend on getter
public function __isset($name) { $getter = 'get' . ucfirst($name); if (method_exists($this, $getter)) { return !is_null($this->$getter()); } else { return isset($this->$name); } }