public function __get($asserter) { switch (strtolower($asserter)) { case 'exists': case 'notexists': case 'withanytype': case 'withanymessage': return $this->{$asserter}(); default: return parent::__get($asserter); } }