Otwarte Dane Zarządu Transportu Miejskiego w Gdańsku'; } public function __construct( EntityManagerInterface $em, GenericLineRepository $lines, GenericStopRepository $stops, GenericTrackRepository $tracks, ZtmGdanskMessageRepository $messages, ReferenceFactory $referenceFactory ) { $provider = $em->getReference(ProviderEntity::class, $this->getIdentifier()); $lines = $lines->withProvider($provider); $stops = $stops->withProvider($provider); $tracks = $tracks->withProvider($provider); $this->lines = $lines; $this->departures = new ZtmGdanskDepartureRepository($lines, $referenceFactory); $this->stops = $stops; $this->messages = $messages; $this->tracks = $tracks; } public function getDepartureRepository(): DepartureRepository { return $this->departures; } public function getLineRepository(): LineRepository { return $this->lines; } public function getStopRepository(): StopRepository { return $this->stops; } public function getMessageRepository(): MessageRepository { return $this->messages; } public function getTrackRepository(): TrackRepository { return $this->tracks; } }