src/Sulu/Component/Webspace/Webspace.php
public function addSegment(Segment $segment)
    {
        $this->segments[] = $segment;

        if ($segment->isDefault()) {
            $this->setDefaultSegment($segment);
        }
    }
public function addSegment(Segment $segment)
    {
        $this->segments[] = $segment;

        if ($segment->isDefault()) {
            $this->setDefaultSegment($segment);
        }
    }
public function addSegment ( Segment $ segment ) { $ this -> segments [ ] = $ segment ; if ( $ segment -> isDefault ( ) ) { $ this -> setDefaultSegment ( $ segment ) ; } }
Adds a segment to the webspace.

@param Segment $segment
Adds a segment to the webspace .