public static function getBySlug(Bookboon $bookboon, string $slug, array $bookTypes = ['pdf']) : BookboonResponse
    {

        /** @var Frontpage[] $frontpageArray */
        $bResponse = $bookboon->rawRequest("/frontpage/$slug", ['bookType' => join(',', $bookTypes)]);

        $bResponse->setEntityStore(
            new EntityStore(
                [
                    new static($bResponse->getReturnArray())
                ]
            )
        );

        return $bResponse;
    }
public static function getBySlug(Bookboon $bookboon, string $slug, array $bookTypes = ['pdf']) : BookboonResponse
    {

        /** @var Frontpage[] $frontpageArray */
        $bResponse = $bookboon->rawRequest("/frontpage/$slug", ['bookType' => join(',', $bookTypes)]);

        $bResponse->setEntityStore(
            new EntityStore(
                [
                    new static($bResponse->getReturnArray())
                ]
            )
        );

        return $bResponse;
    }
public static function getBySlug ( Bookboon $ bookboon , string $ slug , array $ bookTypes = [ 'pdf' ] ) : BookboonResponse { /** @var Frontpage[] $frontpageArray */ $ bResponse = $ bookboon -> rawRequest ( "/frontpage/$slug" , [ 'bookType' => join ( ',' , $ bookTypes ) ] ) ; $ bResponse -> setEntityStore ( new EntityStore ( [ new static ( $ bResponse -> getReturnArray ( ) ) ] ) ) ; return $ bResponse ; }
Get specific frontpage

@param Bookboon $bookboon
@param string $slug
@param array $bookTypes
@return BookboonResponse
@throws UsageException
@throws \Bookboon\Api\Exception\ApiDecodeException
@throws \Bookboon\Api\Exception\EntityDataException
Get specific frontpage