builders[] = $builder; return $this; } #[\ReturnTypeWillChange] public function rewind() { $this->position = 0; } /** * @return BaseEventBuilder */ #[\ReturnTypeWillChange] public function current() { return $this->builders[$this->position]; } #[\ReturnTypeWillChange] public function key() { return $this->position; } #[\ReturnTypeWillChange] public function next() { ++$this->position; } #[\ReturnTypeWillChange] public function valid() { return isset($this->builders[$this->position]); } }