public function getSegment($key)
    {
        foreach ($this->getImporters() as $importer) {
            if ($importer->hasSegment($key)) {
                return $importer->getSegment($key);
            }
        }
        throw new \InvalidArgumentException(sprintf('Segment could not be found by key `%s`.', $key));
    }
public function getSegment($key)
    {
        foreach ($this->getImporters() as $importer) {
            if ($importer->hasSegment($key)) {
                return $importer->getSegment($key);
            }
        }
        throw new \InvalidArgumentException(sprintf('Segment could not be found by key `%s`.', $key));
    }
public function getSegment ( $ key ) { foreach ( $ this -> getImporters ( ) as $ importer ) { if ( $ importer -> hasSegment ( $ key ) ) { return $ importer -> getSegment ( $ key ) ; } } throw new \ InvalidArgumentException ( sprintf ( 'Segment could not be found by key `%s`.' , $ key ) ) ; }
Retrieves a segment by key

@param   string              $key
@return  SegmentInterface
@throws  InvalidArgumentInterface
Retrieves a segment by key