public function addHandler($operation, callable $callback) { $this->handlers[$operation] = $callback; $this->addOperation($operation); }