private function getMedia($timetable, $externalStopPointId = false)
    {
        $seasonCategory = $this->getSeasonCategory(
            $timetable->getLineConfig()->getSeason()->getPerimeter()->getExternalNetworkId(),
            $timetable->getExternalRouteId(),
            $timetable->getLineConfig()->getSeason()->getId(),
            $externalStopPointId
        );

        $media = new Media();
        $media->setCategory($seasonCategory);
        $media->setCompany($this->mediaDataCollector->getCompany());

        return $media;
    }
private function getMedia($timetable, $externalStopPointId = false)
    {
        $seasonCategory = $this->getSeasonCategory(
            $timetable->getLineConfig()->getSeason()->getPerimeter()->getExternalNetworkId(),
            $timetable->getExternalRouteId(),
            $timetable->getLineConfig()->getSeason()->getId(),
            $externalStopPointId
        );

        $media = new Media();
        $media->setCategory($seasonCategory);
        $media->setCompany($this->mediaDataCollector->getCompany());

        return $media;
    }
private function getMedia ( $ timetable , $ externalStopPointId = false ) { $ seasonCategory = $ this -> getSeasonCategory ( $ timetable -> getLineConfig ( ) -> getSeason ( ) -> getPerimeter ( ) -> getExternalNetworkId ( ) , $ timetable -> getExternalRouteId ( ) , $ timetable -> getLineConfig ( ) -> getSeason ( ) -> getId ( ) , $ externalStopPointId ) ; $ media = new Media ( ) ; $ media -> setCategory ( $ seasonCategory ) ; $ media -> setCompany ( $ this -> mediaDataCollector -> getCompany ( ) ) ; return $ media ; }
prepare media regarding Mtt policy
prepare media regarding Mtt policy