public static function get(Bookboon $bookboon, string $categoryId, array $bookTypes = ['pdf']) : BookboonResponse
    {
        $bResponse = $bookboon->rawRequest("/categories/$categoryId", ['bookType' => join(',', $bookTypes)]);

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

        return $bResponse;
    }
public static function get(Bookboon $bookboon, string $categoryId, array $bookTypes = ['pdf']) : BookboonResponse
    {
        $bResponse = $bookboon->rawRequest("/categories/$categoryId", ['bookType' => join(',', $bookTypes)]);

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

        return $bResponse;
    }
public static function get ( Bookboon $ bookboon , string $ categoryId , array $ bookTypes = [ 'pdf' ] ) : BookboonResponse { $ bResponse = $ bookboon -> rawRequest ( "/categories/$categoryId" , [ 'bookType' => join ( ',' , $ bookTypes ) ] ) ; $ bResponse -> setEntityStore ( new EntityStore ( [ new static ( $ bResponse -> getReturnArray ( ) ) ] ) ) ; return $ bResponse ; }
Get Category.

@param Bookboon $bookboon
@param string $categoryId
@param array $bookTypes
@return BookboonResponse
@throws \Bookboon\Api\Exception\ApiDecodeException
@throws \Bookboon\Api\Exception\EntityDataException
@throws \Bookboon\Api\Exception\UsageException
Get Category .