Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 4
CRAP
0.00% covered (danger)
0.00%
0 / 8
TelnyxMmsMessage
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 4
20
0.00% covered (danger)
0.00%
0 / 8
 from
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
 content
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
 subject
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
 images
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
1<?php
2
3namespace AGILEDROP\LaravelTelnyx\Messages;
4
5class TelnyxMmsMessage extends TelnyxBaseMessage
6{
7    /**
8     * The phone number the message should be sent from.
9     *
10     * @var string
11     */
12    public string $from;
13
14    /**
15     * The message text content.
16     *
17     * @var string
18     */
19    public string $content;
20
21    /**
22     * The message subject
23     *
24     * @var string
25     */
26    public string $subject;
27
28    /**
29     * The message image urls
30     *
31     * @var array
32     */
33    public array $images;
34
35    /**
36     * Set the from phone number for the mms message.
37     *
38     * @param $from
39     *
40     * @return $this
41     */
42    public function from($from)
43    {
44        $this->from = $from;
45
46        return $this;
47    }
48
49    /**
50     * Set the content of the the mms message.
51     *
52     * @param  string  $content
53     * @return $this
54     */
55    public function content(string $content)
56    {
57        $this->content = $content;
58
59        return $this;
60    }
61
62    /**
63     * Set the subject of the mms message.
64     *
65     * @param $subject
66     *
67     * @return $this
68     */
69    public function subject($subject)
70    {
71        $this->subject = $subject;
72
73        return $this;
74    }
75
76    /**
77     * Set the images of the the mms message.
78     *
79     * @param  array  $images
80     * @return $this
81     */
82    public function images(array $images)
83    {
84        $this->images = $images;
85
86        return $this;
87    }
88}