From 11a33ac87f10772a3262f726e75454ba165a9e32 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Thu, 5 May 2022 12:05:13 +0100 Subject: [PATCH] feat: add PHPDoc hints to facade --- src/Facades/SnappyPdf.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Facades/SnappyPdf.php b/src/Facades/SnappyPdf.php index d8690d5..7f8683f 100644 --- a/src/Facades/SnappyPdf.php +++ b/src/Facades/SnappyPdf.php @@ -17,6 +17,16 @@ * @method static \Illuminate\Http\Response download($filename = 'document.pdf') * @method static \Illuminate\Http\Response inline($filename = 'document.pdf') * + * @method static \Barryvdh\Snappy\PdfFaker ensureResponseHasView() Only available when using ::fake() + * @method static \Barryvdh\Snappy\PdfFaker assertViewIs(string $value) Only available when using ::fake() + * @method static \Barryvdh\Snappy\PdfFaker assertViewHas(string|array $key, mixed $value = null) Only available when using ::fake() + * @method static \Barryvdh\Snappy\PdfFaker assertViewHasAll(array $bindings) Only available when using ::fake() + * @method static \Barryvdh\Snappy\PdfFaker assertViewMissing(string $key) Only available when using ::fake() + * @method static \Barryvdh\Snappy\PdfFaker assertSee(string $value) Only available when using ::fake() + * @method static \Barryvdh\Snappy\PdfFaker assertSeeText(string $value) Only available when using ::fake() + * @method static \Barryvdh\Snappy\PdfFaker assertDontSee(string $value) Only available when using ::fake() + * @method static \Barryvdh\Snappy\PdfFaker assertDontSeeText(string $value) Only available when using ::fake() + * @method static \Barryvdh\Snappy\PdfFaker assertFileNameIs(string $value) Only available when using ::fake() */ class SnappyPdf extends BaseFacade {