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

valkyrjaio / valkyrja / 20156277091

12 Dec 2025 04:26AM UTC coverage: 73.416% (-0.6%) from 74.002%
20156277091

push

github

MelechMizrachi
CI: Trying to fix coveralls.

8125 of 11067 relevant lines covered (73.42%)

17.9 hits per line

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

0.0
/src/Valkyrja/Sms/Data/Message.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of the Valkyrja Framework package.
7
 *
8
 * (c) Melech Mizrachi <melechmizrachi@gmail.com>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13

14
namespace Valkyrja\Sms\Data;
15

16
use Override;
17
use Valkyrja\Sms\Data\Contract\Message as Contract;
18

19
/**
20
 * Class Message.
21
 *
22
 * @author Melech Mizrachi
23
 */
24
class Message implements Contract
25
{
26
    public function __construct(
×
27
        protected string $to,
28
        protected string $from,
29
        protected string $text,
30
        protected bool $isUnicode = true
31
    ) {
32
    }
×
33

34
    /**
35
     * @inheritDoc
36
     */
37
    #[Override]
×
38
    public function getTo(): string
39
    {
40
        return $this->to;
×
41
    }
42

43
    /**
44
     * @inheritDoc
45
     */
46
    #[Override]
×
47
    public function setTo(string $to): static
48
    {
49
        $this->to = $to;
×
50

51
        return $this;
×
52
    }
53

54
    /**
55
     * @inheritDoc
56
     */
57
    #[Override]
×
58
    public function getFrom(): string
59
    {
60
        return $this->from;
×
61
    }
62

63
    /**
64
     * @inheritDoc
65
     */
66
    #[Override]
×
67
    public function setFrom(string $from): static
68
    {
69
        $this->from = $from;
×
70

71
        return $this;
×
72
    }
73

74
    /**
75
     * @inheritDoc
76
     */
77
    #[Override]
×
78
    public function getText(): string
79
    {
80
        return $this->text;
×
81
    }
82

83
    /**
84
     * @inheritDoc
85
     */
86
    #[Override]
×
87
    public function setText(string $text): static
88
    {
89
        $this->text = $text;
×
90

91
        return $this;
×
92
    }
93

94
    /**
95
     * @inheritDoc
96
     */
97
    #[Override]
×
98
    public function isUnicode(): bool
99
    {
100
        return $this->isUnicode;
×
101
    }
102

103
    /**
104
     * @inheritDoc
105
     */
106
    #[Override]
×
107
    public function setIsUnicode(bool $isUnicode = true): static
108
    {
109
        $this->isUnicode = $isUnicode;
×
110

111
        return $this;
×
112
    }
113
}
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