From 67530cacdc2a2829f82cc8d0de6e16968c2d0899 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Fri, 8 Mar 2024 20:53:15 +0100 Subject: [PATCH] add L11 stubs --- stubs/cast.inbound.stub | 14 +++++++ stubs/cast.stub | 19 ++++++++++ stubs/class.invokable.stub | 11 ++++++ stubs/class.stub | 8 ++++ stubs/controller.nested.singleton.api.stub | 30 +++++++++++++++ stubs/controller.nested.singleton.stub | 40 ++++++++++++++++++++ stubs/controller.singleton.api.stub | 29 +++++++++++++++ stubs/controller.singleton.stub | 39 ++++++++++++++++++++ stubs/enum.backed.stub | 8 ++++ stubs/enum.stub | 8 ++++ stubs/markdown-mail.stub | 43 ++++++++++++++++++++++ stubs/markdown-notification.stub | 35 ++++++++++++++++++ stubs/notification.stub | 38 +++++++++++++++++++ stubs/observer.plain.stub | 8 ++++ stubs/observer.stub | 33 +++++++++++++++++ stubs/scope.stub | 15 ++++++++ stubs/trait.stub | 8 ++++ stubs/view-component.stub | 20 ++++++++++ 18 files changed, 406 insertions(+) create mode 100644 stubs/cast.inbound.stub create mode 100644 stubs/cast.stub create mode 100644 stubs/class.invokable.stub create mode 100644 stubs/class.stub create mode 100644 stubs/controller.nested.singleton.api.stub create mode 100644 stubs/controller.nested.singleton.stub create mode 100644 stubs/controller.singleton.api.stub create mode 100644 stubs/controller.singleton.stub create mode 100644 stubs/enum.backed.stub create mode 100644 stubs/enum.stub create mode 100644 stubs/markdown-mail.stub create mode 100644 stubs/markdown-notification.stub create mode 100644 stubs/notification.stub create mode 100644 stubs/observer.plain.stub create mode 100644 stubs/observer.stub create mode 100644 stubs/scope.stub create mode 100644 stubs/trait.stub create mode 100644 stubs/view-component.stub diff --git a/stubs/cast.inbound.stub b/stubs/cast.inbound.stub new file mode 100644 index 0000000..e2425f3 --- /dev/null +++ b/stubs/cast.inbound.stub @@ -0,0 +1,14 @@ + + */ + public function attachments(): array + { + return []; + } +} diff --git a/stubs/markdown-notification.stub b/stubs/markdown-notification.stub new file mode 100644 index 0000000..cec12db --- /dev/null +++ b/stubs/markdown-notification.stub @@ -0,0 +1,35 @@ +markdown('{{ view }}'); + } + + public function toArray(object $notifiable): array + { + return [ + // + ]; + } +} diff --git a/stubs/notification.stub b/stubs/notification.stub new file mode 100644 index 0000000..0090235 --- /dev/null +++ b/stubs/notification.stub @@ -0,0 +1,38 @@ +line('The introduction to the notification.') + ->action('Notification Action', url('/')) + ->line('Thank you for using our application!'); + } + + public function toArray(object $notifiable): array + { + return [ + // + ]; + } +} diff --git a/stubs/observer.plain.stub b/stubs/observer.plain.stub new file mode 100644 index 0000000..e2506b7 --- /dev/null +++ b/stubs/observer.plain.stub @@ -0,0 +1,8 @@ +