1 | <?php |
||
11 | class Mailbox |
||
12 | { |
||
13 | use ForwardsCalls; |
||
14 | |||
15 | /** @var RouteCollection */ |
||
16 | protected $routes; |
||
17 | |||
18 | /** @var Route */ |
||
19 | protected $fallbackRoute; |
||
20 | |||
21 | /** @var Container */ |
||
22 | protected $container; |
||
23 | |||
24 | public function __construct(Container $container = null) |
||
30 | |||
31 | public function from(string $pattern, $action): Route |
||
35 | |||
36 | public function to(string $pattern, $action): Route |
||
40 | |||
41 | public function cc(string $pattern, $action): Route |
||
45 | |||
46 | public function bcc(string $pattern, $action): Route |
||
50 | |||
51 | public function subject(string $pattern, $action): Route |
||
55 | |||
56 | public function fallback($action) |
||
60 | |||
61 | protected function addRoute(string $matchBy, string $pattern, $action): Route |
||
69 | |||
70 | protected function createRoute(string $subject, string $pattern, $action): Route |
||
75 | |||
76 | public function callMailboxes(InboundEmail $email) |
||
95 | |||
96 | protected function shouldStoreInboundEmails(): bool |
||
100 | |||
101 | protected function shouldStoreAllInboundEmails(Collection $matchedRoutes): bool |
||
105 | |||
106 | protected function storeEmail(InboundEmail $email) |
||
110 | |||
111 | public function __call($method, $parameters) |
||
117 | } |
||
118 |