public static function getByBookId(Bookboon $bookboon, string $bookId) : BookboonResponse
    {
        if (Entity::isValidUUID($bookId) === false) {
            throw new BadUUIDException();
        }

        $bResponse = $bookboon->rawRequest("/books/$bookId/review");

        $bResponse->setEntityStore(
            new EntityStore(Review::getEntitiesFromArray($bResponse->getReturnArray()))
        );

        return $bResponse;
    }
public static function getByBookId(Bookboon $bookboon, string $bookId) : BookboonResponse
    {
        if (Entity::isValidUUID($bookId) === false) {
            throw new BadUUIDException();
        }

        $bResponse = $bookboon->rawRequest("/books/$bookId/review");

        $bResponse->setEntityStore(
            new EntityStore(Review::getEntitiesFromArray($bResponse->getReturnArray()))
        );

        return $bResponse;
    }
public static function getByBookId ( Bookboon $ bookboon , string $ bookId ) : BookboonResponse { if ( Entity :: isValidUUID ( $ bookId ) === false ) { throw new BadUUIDException ( ) ; } $ bResponse = $ bookboon -> rawRequest ( "/books/$bookId/review" ) ; $ bResponse -> setEntityStore ( new EntityStore ( Review :: getEntitiesFromArray ( $ bResponse -> getReturnArray ( ) ) ) ) ; return $ bResponse ; }
Get Reviews for specified Book.

@param Bookboon $bookboon
@param string $bookId
@return BookboonResponse

@throws BadUUIDException
@throws \Bookboon\Api\Exception\UsageException
Get Reviews for specified Book .