src/Ridvanbaluyos/Mmda/MMDA.php
public function segments($highway = NULL)
    {
        if ($highway && isset($this->trafficData[$highway]['segments'])) {
            return array_keys($this->trafficData[$highway]['segments']);
        }

        return null;
    }
public function segments($highway = NULL)
    {
        if ($highway && isset($this->trafficData[$highway]['segments'])) {
            return array_keys($this->trafficData[$highway]['segments']);
        }

        return null;
    }
public function segments ( $ highway = NULL ) { if ( $ highway && isset ( $ this -> trafficData [ $ highway ] [ 'segments' ] ) ) { return array_keys ( $ this -> trafficData [ $ highway ] [ 'segments' ] ) ; } return null ; }
This function returns the list of segments in a given highway.

@param $highway
@return array|null
This function returns the list of segments in a given highway .