Variation/AbstractVariation.php
public function current()
    {
        $result = [];

        if (!$this->isRoot()) {
            $result = [
                $this->getName() => $this->getCurrent(),
            ];
        }
        $nested = $this->getNested();

        foreach ($nested as $variation) {
            $result = array_merge($result, $variation->current());
        }

        return $result;
    }
public function current()
    {
        $result = [];

        if (!$this->isRoot()) {
            $result = [
                $this->getName() => $this->getCurrent(),
            ];
        }
        $nested = $this->getNested();

        foreach ($nested as $variation) {
            $result = array_merge($result, $variation->current());
        }

        return $result;
    }
public function current ( ) { $ result = [ ] ; if ( ! $ this -> isRoot ( ) ) { $ result = [ $ this -> getName ( ) => $ this -> getCurrent ( ) , ] ; } $ nested = $ this -> getNested ( ) ; foreach ( $ nested as $ variation ) { $ result = array_merge ( $ result , $ variation -> current ( ) ) ; } return $ result ; }
{@inheritdoc}
{