-
Notifications
You must be signed in to change notification settings - Fork 27
/
TextMessage.php
67 lines (59 loc) · 1.38 KB
/
TextMessage.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
namespace Illuminate\Mail;
use Illuminate\Support\Traits\ForwardsCalls;
/**
* @mixin \Illuminate\Mail\Message
*/
class TextMessage
{
use ForwardsCalls;
/**
* The underlying message instance.
*
* @var \Illuminate\Mail\Message
*/
protected $message;
/**
* Create a new text message instance.
*
* @param \Illuminate\Mail\Message $message
* @return void
*/
public function __construct($message)
{
$this->message = $message;
}
/**
* Embed a file in the message and get the CID.
*
* @param string|\Illuminate\Contracts\Mail\Attachable|\Illuminate\Mail\Attachment $file
* @return string
*/
public function embed($file)
{
return '';
}
/**
* Embed in-memory data in the message and get the CID.
*
* @param string|resource $data
* @param string $name
* @param string|null $contentType
* @return string
*/
public function embedData($data, $name, $contentType = null)
{
return '';
}
/**
* Dynamically pass missing methods to the underlying message instance.
*
* @param string $method
* @param array $parameters
* @return mixed
*/
public function __call($method, $parameters)
{
return $this->forwardDecoratedCallTo($this->message, $method, $parameters);
}
}