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

conedevelopment / root / 15084089635

17 May 2025 10:00AM UTC coverage: 77.93% (+0.04%) from 77.891%
15084089635

push

github

web-flow
Modernize back-end.yml (#240)

3291 of 4223 relevant lines covered (77.93%)

36.04 hits per line

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

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

3
namespace Cone\Root\Notifications;
4

5
use Illuminate\Contracts\Support\Arrayable;
6

7
class RootMessage implements Arrayable
8
{
9
    /**
10
     * The subject.
11
     */
12
    protected ?string $subject = null;
13

14
    /**
15
     * The message.
16
     */
17
    protected ?string $message = null;
18

19
    /**
20
     * The data.
21
     */
22
    protected array $data = [];
23

24
    /**
25
     * Create a new message instance.
26
     */
27
    public function __construct(?string $subject = null, ?string $message = null)
×
28
    {
29
        $this->subject = $subject;
×
30
        $this->message = $message;
×
31
    }
32

33
    /**
34
     * Set the subject.
35
     */
36
    public function subject(string $value): static
×
37
    {
38
        $this->subject = $value;
×
39

40
        return $this;
×
41
    }
42

43
    /**
44
     * Set the message.
45
     */
46
    public function message(string $value): static
×
47
    {
48
        $this->message = $value;
×
49

50
        return $this;
×
51
    }
52

53
    /**
54
     * Set the data.
55
     */
56
    public function data(array $value): static
×
57
    {
58
        $this->data = $value;
×
59

60
        return $this;
×
61
    }
62

63
    /**
64
     * Get the array form of the message.
65
     */
66
    public function toArray(): array
×
67
    {
68
        return [
×
69
            'subject' => $this->subject,
×
70
            'message' => $this->message,
×
71
            'data' => $this->data,
×
72
        ];
×
73
    }
74
}
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

© 2025 Coveralls, Inc