1 | <?php |
||
12 | class Mail extends Mailer |
||
13 | { |
||
14 | /** |
||
15 | * Mail model instance. |
||
16 | 8 | * |
|
17 | * @var \Distilleries\MailerSaver\Contracts\MailModelContract |
||
18 | 8 | */ |
|
19 | 8 | protected $model; |
|
20 | 8 | ||
21 | /** |
||
22 | 8 | * Configuration override data. |
|
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $override; |
||
27 | |||
28 | /** |
||
29 | * Mailersaver instance constructor. |
||
30 | * |
||
31 | 8 | * @param \Distilleries\MailerSaver\Contracts\MailModelContract $model |
|
32 | 8 | * @param \Wpb\String_Blade_Compiler\Factory $views |
|
33 | 8 | * @param \Swift_Mailer $swift |
|
34 | 8 | * @param \Illuminate\Events\Dispatcher $events |
|
35 | */ |
||
36 | 8 | public function __construct(MailModelContract $model, Factory $views, Swift_Mailer $swift, Dispatcher $events = null) |
|
44 | |||
45 | 8 | /** |
|
46 | * Render the given mail view. |
||
47 | 8 | * |
|
48 | * @param string $view |
||
49 | 8 | * @param array $data |
|
50 | 8 | * @return string |
|
51 | */ |
||
52 | 8 | protected function getView($view, $data) |
|
77 | |||
78 | 8 | /** |
|
79 | * Send contained mail instance. |
||
80 | * |
||
81 | 8 | * @param string $view |
|
82 | 8 | * @param array $data |
|
83 | 8 | * @param mixed $callback |
|
84 | * @return void |
||
85 | 8 | */ |
|
86 | 8 | public function send($view, array $data = [], $callback = null) |
|
121 | |||
122 | 8 | /** |
|
123 | * Set subject to message. |
||
124 | * |
||
125 | * @param \Illuminate\Mail\Message $message |
||
126 | * @return void |
||
127 | 8 | */ |
|
128 | public function addSubject($message) |
||
135 | |||
136 | 8 | /** |
|
137 | * Set CC addresses to message. |
||
138 | * |
||
139 | * @param \Illuminate\Mail\Message $message |
||
140 | * @return void |
||
141 | 8 | */ |
|
142 | public function addCc($message) |
||
149 | |||
150 | 8 | /** |
|
151 | * Set BCC addresses to message. |
||
152 | 8 | * |
|
153 | * @param \Illuminate\Mail\Message $message |
||
154 | 8 | * @return void |
|
155 | 8 | */ |
|
156 | public function addBcc($message) |
||
163 | 8 | ||
164 | /** |
||
165 | 8 | * Set TO addresses to message. |
|
166 | 8 | * |
|
167 | 8 | * @param \Illuminate\Mail\Message $message |
|
168 | 4 | * @return void |
|
169 | 4 | */ |
|
170 | 8 | public function overrideTo($message) |
|
177 | |||
178 | /** |
||
179 | * Return if mail configuration is supercharged. |
||
180 | * |
||
181 | * @return bool |
||
182 | */ |
||
183 | public function isOverride() |
||
187 | } |
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..