1 | <?php |
||
11 | class Mail extends Mailer |
||
12 | { |
||
13 | /** |
||
14 | * Mail model instance. |
||
15 | * |
||
16 | 8 | * @var \Distilleries\MailerSaver\Contracts\MailModelContract |
|
17 | */ |
||
18 | 8 | protected $model; |
|
19 | 8 | ||
20 | 8 | /** |
|
21 | * Configuration override data. |
||
22 | 8 | * |
|
23 | * @var array |
||
24 | */ |
||
25 | protected $override; |
||
26 | |||
27 | /** |
||
28 | * Mailersaver instance constructor. |
||
29 | * |
||
30 | * @param \Distilleries\MailerSaver\Contracts\MailModelContract $model |
||
31 | 8 | * @param \Wpb\String_Blade_Compiler\Factory $views |
|
32 | 8 | * @param \Swift_Mailer $swift |
|
33 | 8 | * @param \Illuminate\Events\Dispatcher $events |
|
34 | 8 | */ |
|
35 | public function __construct(MailModelContract $model, Factory $views, Swift_Mailer $swift, Dispatcher $events = null) |
||
43 | 8 | ||
44 | /** |
||
45 | 8 | * Render the given mail view. |
|
46 | * |
||
47 | 8 | * @param string $view |
|
48 | * @param array $data |
||
49 | 8 | * @return string |
|
50 | 8 | */ |
|
51 | protected function getView($view, $data) |
||
76 | |||
77 | /** |
||
78 | 8 | * Send contained mail instance. |
|
79 | * |
||
80 | * @param string $view |
||
81 | 8 | * @param array $data |
|
82 | 8 | * @param mixed $callback |
|
83 | 8 | * @return void |
|
84 | */ |
||
85 | 8 | public function send($view, array $data = [], $callback = null) |
|
115 | 8 | ||
116 | /** |
||
117 | 8 | * Set subject to message. |
|
118 | 8 | * |
|
119 | 4 | * @param \Illuminate\Mail\Message $message |
|
120 | 4 | * @return void |
|
121 | */ |
||
122 | 8 | public function addSubject($message) |
|
129 | 8 | ||
130 | /** |
||
131 | 8 | * Set CC addresses to message. |
|
132 | 8 | * |
|
133 | 4 | * @param \Illuminate\Mail\Message $message |
|
134 | 4 | * @return void |
|
135 | */ |
||
136 | 8 | public function addCc($message) |
|
143 | 8 | ||
144 | /** |
||
145 | 8 | * Set BCC addresses to message. |
|
146 | 8 | * |
|
147 | 8 | * @param \Illuminate\Mail\Message $message |
|
148 | 8 | * @return void |
|
149 | */ |
||
150 | 8 | public function addBcc($message) |
|
157 | 8 | ||
158 | /** |
||
159 | * Set TO addresses to message. |
||
160 | * |
||
161 | * @param \Illuminate\Mail\Message $message |
||
162 | * @return void |
||
163 | 8 | */ |
|
164 | public function overrideTo($message) |
||
171 | |||
172 | /** |
||
173 | * Return if mail configuration is supercharged. |
||
174 | * |
||
175 | * @return bool |
||
176 | */ |
||
177 | public function isOverride() |
||
181 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..