Total Complexity | 8 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class StockTickerConfig extends AbstractConfig |
||
13 | { |
||
14 | public function getTemplatesDir(): string |
||
15 | { |
||
16 | return dirname(__DIR__) . '/notification'; |
||
17 | } |
||
18 | |||
19 | public function getToAddress(): string |
||
20 | { |
||
21 | return (string) $this->get('TO_ADDRESS'); |
||
22 | } |
||
23 | |||
24 | public function getMailerUsername(): string |
||
25 | { |
||
26 | return (string) $this->get('MAILER_USERNAME'); |
||
27 | } |
||
28 | |||
29 | public function getMailerPassword(): string |
||
30 | { |
||
31 | return (string) $this->get('MAILER_PASSWORD'); |
||
32 | } |
||
33 | |||
34 | public function getSlackDestinyChannelId(): string |
||
35 | { |
||
36 | return (string) $this->get('SLACK_DESTINY_CHANNEL_ID'); |
||
37 | } |
||
38 | |||
39 | public function getSlackBotUserOauthAccessToken(): string |
||
42 | } |
||
43 | |||
44 | public function isDebug(): bool |
||
45 | { |
||
46 | return $this->isTrue((string) $this->get('DEBUG')); |
||
47 | } |
||
48 | |||
49 | private function isTrue(string $bool): bool |
||
52 | } |
||
53 | } |
||
54 |