public function getStopPoint($externalStopPointId, $timetable, $externalCoverageId)
    {
        $this->stopPoint = $this->repository->findOneBy(array(
            'externalId' => $externalStopPointId,
            'timetable' => $timetable->getId()
        ));
        $this->timetable = $timetable;
        if (!empty($this->stopPoint)) {
            $this->initBlocks();
        } else {
            $this->stopPoint = new StopPoint();

            $this->stopPoint->setExternalId($externalStopPointId);
            $this->stopPoint->setTimetable($timetable);
        }

        $this->initStopPoint($externalCoverageId);
        $this->initStopPointPois($externalCoverageId);

        return $this->stopPoint;
    }
public function getStopPoint($externalStopPointId, $timetable, $externalCoverageId)
    {
        $this->stopPoint = $this->repository->findOneBy(array(
            'externalId' => $externalStopPointId,
            'timetable' => $timetable->getId()
        ));
        $this->timetable = $timetable;
        if (!empty($this->stopPoint)) {
            $this->initBlocks();
        } else {
            $this->stopPoint = new StopPoint();

            $this->stopPoint->setExternalId($externalStopPointId);
            $this->stopPoint->setTimetable($timetable);
        }

        $this->initStopPoint($externalCoverageId);
        $this->initStopPointPois($externalCoverageId);

        return $this->stopPoint;
    }
public function getStopPoint ( $ externalStopPointId , $ timetable , $ externalCoverageId ) { $ this -> stopPoint = $ this -> repository -> findOneBy ( array ( 'externalId' => $ externalStopPointId , 'timetable' => $ timetable -> getId ( ) ) ) ; $ this -> timetable = $ timetable ; if ( ! empty ( $ this -> stopPoint ) ) { $ this -> initBlocks ( ) ; } else { $ this -> stopPoint = new StopPoint ( ) ; $ this -> stopPoint -> setExternalId ( $ externalStopPointId ) ; $ this -> stopPoint -> setTimetable ( $ timetable ) ; } $ this -> initStopPoint ( $ externalCoverageId ) ; $ this -> initStopPointPois ( $ externalCoverageId ) ; return $ this -> stopPoint ; }
Return StopPoint with data from navitia

@param  String    $externalStopPointId
@param  Line      $line                Line Entity
@return stopPoint
Return StopPoint with data from navitia