public function __call($name, $args) { $class = get_class($this); throw new MemberAccessException("Call to undefined method {$class}::{$name}()."); }