src/Infakt/Repository/AbstractObjectRepository.php
public function get(int $entityId)
    {
        $response = $this->infakt->get($this->getServiceName().'/'.$entityId.'.json');

        if (2 != substr((string) $response->getStatusCode(), 0, 1)) {
            return null;
        }

        return $this->getMapper()->map(\GuzzleHttp\json_decode($response->getBody()->getContents(), true));
    }
public function get(int $entityId)
    {
        $response = $this->infakt->get($this->getServiceName().'/'.$entityId.'.json');

        if (2 != substr((string) $response->getStatusCode(), 0, 1)) {
            return null;
        }

        return $this->getMapper()->map(\GuzzleHttp\json_decode($response->getBody()->getContents(), true));
    }
public function get ( int $ entityId ) { $ response = $ this -> infakt -> get ( $ this -> getServiceName ( ) . '/' . $ entityId . '.json' ) ; if ( 2 != substr ( ( string ) $ response -> getStatusCode ( ) , 0 , 1 ) ) { return null ; } return $ this -> getMapper ( ) -> map ( \ GuzzleHttp \ json_decode ( $ response -> getBody ( ) -> getContents ( ) , true ) ) ; }
Get entity by ID.

@param $entityId

@return null|EntityInterface
Get entity by ID .