src/RouteGroup.php
private function setPrefix($prefix)
    {
        if (0 === strlen($prefix)) {
            throw new \InvalidArgumentException('Group prefix may not be empty.');
        }

        $prefix = '/'.trim($prefix, '/');

        $this->prefix = $this->hasParent() ? $this->parent->getPrefix() . $prefix : $prefix;
    }
private function setPrefix($prefix)
    {
        if (0 === strlen($prefix)) {
            throw new \InvalidArgumentException('Group prefix may not be empty.');
        }

        $prefix = '/'.trim($prefix, '/');

        $this->prefix = $this->hasParent() ? $this->parent->getPrefix() . $prefix : $prefix;
    }
private function setPrefix ( $ prefix ) { if ( 0 === strlen ( $ prefix ) ) { throw new \ InvalidArgumentException ( 'Group prefix may not be empty.' ) ; } $ prefix = '/' . trim ( $ prefix , '/' ) ; $ this -> prefix = $ this -> hasParent ( ) ? $ this -> parent -> getPrefix ( ) . $ prefix : $ prefix ; }
Set the group prefix

@return void
Set the group prefix