protected function onRead() { if (func_num_args() === 1) { $this->onRead = func_get_arg(0); return $this; } $this->event('read'); }