callable = $callable; } /** * Get the value of the current element */ public function current() { $iterator = $this->getInnerIterator(); return call_user_func($this->callable, $iterator->current(), $iterator->key(), $iterator); } }