src/Traverser.php
final public function traverse(array &$arr)
    {
        if (!$this->isReady()) {
            throw new \RuntimeException("The traverser is not ready, no valid item callback has been set.");
        }

        return static::run($arr, $this->itemCallback, $this->resultCallback);
    }
final public function traverse(array &$arr)
    {
        if (!$this->isReady()) {
            throw new \RuntimeException("The traverser is not ready, no valid item callback has been set.");
        }

        return static::run($arr, $this->itemCallback, $this->resultCallback);
    }
final public function traverse ( array & $ arr ) { if ( ! $ this -> isReady ( ) ) { throw new \ RuntimeException ( "The traverser is not ready, no valid item callback has been set." ) ; } return static :: run ( $ arr , $ this -> itemCallback , $ this -> resultCallback ) ; }
Runs the given array through the Traverser's callbacks.

@param array $arr The array to traverse.

@return array Returns the resulting array.
Runs the given array through the Traverser s callbacks .