src/Mapper/BaseGroupedMapper.php
public function end()
    {
        if (null !== $this->currentGroup) {
            $this->currentGroup = null;
        } elseif (null !== $this->currentTab) {
            $this->currentTab = null;
        } else {
            throw new \RuntimeException('No open tabs or groups, you cannot use end()');
        }

        return $this;
    }
public function end()
    {
        if (null !== $this->currentGroup) {
            $this->currentGroup = null;
        } elseif (null !== $this->currentTab) {
            $this->currentTab = null;
        } else {
            throw new \RuntimeException('No open tabs or groups, you cannot use end()');
        }

        return $this;
    }
public function end ( ) { if ( null !== $ this -> currentGroup ) { $ this -> currentGroup = null ; } elseif ( null !== $ this -> currentTab ) { $ this -> currentTab = null ; } else { throw new \ RuntimeException ( 'No open tabs or groups, you cannot use end()' ) ; } return $ this ; }
Close the current group or tab.

@throws \RuntimeException

@return $this
Close the current group or tab .