• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

conedevelopment / bazar / 20694116184

04 Jan 2026 02:08PM UTC coverage: 68.615% (+4.5%) from 64.117%
20694116184

push

github

iamgergo
version

1679 of 2447 relevant lines covered (68.61%)

25.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Notifications/OrderDetails.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Cone\Bazar\Notifications;
6

7
use Cone\Bazar\Models\Order;
8
use Illuminate\Bus\Queueable;
9
use Illuminate\Contracts\Queue\ShouldQueue;
10
use Illuminate\Notifications\Messages\MailMessage;
11
use Illuminate\Notifications\Notification;
12

13
class OrderDetails extends Notification implements ShouldQueue
14
{
15
    use Queueable;
16

17
    /**
18
     * The order instance.
19
     */
20
    protected Order $order;
21

22
    /**
23
     * Create a new notification instance.
24
     */
25
    public function __construct(Order $order)
×
26
    {
27
        $this->order = $order;
×
28
    }
29

30
    /**
31
     * Get the notification's delivery channels.
32
     *
33
     * @return array<int, string>
34
     */
35
    public function via(object $notifiable): array
×
36
    {
37
        return ['mail'];
×
38
    }
39

40
    /**
41
     * Get the mail representation of the notification.
42
     */
43
    public function toMail(object $notifiable): MailMessage
×
44
    {
45
        return (new MailMessage)
×
46
            ->subject(__('Order Details (#:order)', ['order' => $this->order->getKey()]))
×
47
            ->markdown('root::mail.order-details', [
×
48
                'order' => $this->order,
×
49
            ]);
×
50
    }
51
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc