@@ -44,6 +44,9 @@ discard block |
||
44 | 44 | }); |
45 | 45 | } |
46 | 46 | |
47 | + /** |
|
48 | + * @param Mailable $mailable |
|
49 | + */ |
|
47 | 50 | protected function getMailableProperty($mailable, string $property) |
48 | 51 | { |
49 | 52 | $reflection = new ReflectionClass($mailable); |
@@ -54,6 +57,9 @@ discard block |
||
54 | 57 | return $property->getValue($mailable); |
55 | 58 | } |
56 | 59 | |
60 | + /** |
|
61 | + * @return string |
|
62 | + */ |
|
57 | 63 | protected function getMailableViewFile(Mailable $mailable) |
58 | 64 | { |
59 | 65 | if (!is_null($markdown = $this->getMailableProperty($mailable, 'markdown'))) { |
@@ -68,6 +74,9 @@ discard block |
||
68 | 74 | return View::make($viewFile); |
69 | 75 | } |
70 | 76 | |
77 | + /** |
|
78 | + * @param \Illuminate\Contracts\View\View $view |
|
79 | + */ |
|
71 | 80 | protected function getMailableViewContent($view) |
72 | 81 | { |
73 | 82 | return file_get_contents($view->getPath()); |