public function addAfterHook($hook) { if (!isset($this->options['after'])) { $this->options['after'] = []; } $this->options['after'][] = $hook; }