callable = $callable; } public function current() { return call_user_func( $this->callable, $this->iterator->current() ); } } class_alias( CallbackIterator::class, 'EchoCallbackIterator' );