@@ 89-98 (lines=10) @@ | ||
86 | return $this; |
|
87 | } |
|
88 | ||
89 | public function withHost(string $host): NotifierBuilder |
|
90 | { |
|
91 | if (empty(trim($host))) { |
|
92 | throw new AirbrakeConfigurationException('Host cannot be empty'); |
|
93 | } |
|
94 | ||
95 | $this->host = $host; |
|
96 | ||
97 | return $this; |
|
98 | } |
|
99 | ||
100 | public function withHttpClient(string $httpClient): NotifierBuilder |
|
101 | { |
|
@@ 129-138 (lines=10) @@ | ||
126 | return $this; |
|
127 | } |
|
128 | ||
129 | public function withEnvironment(string $environment): NotifierBuilder |
|
130 | { |
|
131 | if (empty(trim($environment))) { |
|
132 | throw new AirbrakeConfigurationException('Environment cannot be empty'); |
|
133 | } |
|
134 | ||
135 | $this->environment = $environment; |
|
136 | ||
137 | return $this; |
|
138 | } |
|
139 | ||
140 | public function withAppVersion(string $appVersion): NotifierBuilder |
|
141 | { |