Skip to content
Snippets Groups Projects
Select Git revision
  • thesis/main
  • thesis/feature/2024/07/30-create-bison-verifier
  • thesis/dev protected
  • thesis/feature/2024/07/30-add-verifier-attestation
  • tmp/rebrand
  • develop protected
  • main protected
  • release/4.0.0
  • feature/credentialMatching
  • feature/siop-documentation
  • fail/kotest
  • feature/readableSchemeSet
  • feature/2024/06/27-refactor-siop-wallet-separate-authentication-response-building-steps
  • tmp/onlineWallet2
  • feature/authenticationRequestParameterFromSerializer
  • feature/2024/06/27-refactor-siop-wallet-separate-authentication-response-building
  • feature/2024/06/13-refactor-siop-wallet-make-authentication-request-serializable
  • release/3.8.1
  • feature/2024/06/13-improved-presentation-input-descriptor-credential-matching
  • feature/remove-attachments
  • 4.0.0
  • 3.8.0
  • 3.7.0
  • 3.6.1
  • 3.6.0
  • 3.5.0
  • 3.4.0
  • 3.3.0
  • 3.2.0
  • 3.0.2
  • 3.0.2-SNAPSHOT
  • 3.0.1
  • 3.0.0
  • 2.0.0
  • 1.8.0
  • 1.7.2
36 results

README.md

Blame
  • ExternalApi.php 944 B
    <?php
    
    declare(strict_types=1);
    
    namespace DBP\API\StarterBundle\Service;
    
    use DBP\API\StarterBundle\Entity\Place;
    
    class ExternalApi implements PlaceProviderInterface
    {
        private $places;
    
        public function __construct(MyCustomService $service)
        {
            $service = $service;
    
            $this->places = [];
            $place1 = new Place();
            $place1->setIdentifier('graz');
            $place1->setName('Graz');
    
            $place2 = new Place();
            $place2->setIdentifier('vienna');
            $place2->setName('Vienna');
    
            $this->places[] = $place1;
            $this->places[] = $place2;
        }
    
        public function getPlaceById(string $identifier): ?Place
        {
            foreach ($this->places as $place) {
                if ($place->getIdentifier() === $identifier) {
                    return $place;
                }
            }
    
            return null;
        }
    
        public function getPlaces(): array
        {
            return $this->places;
        }
    }