Skip to content

Commit e2ebe89

Browse files
authored
Merge pull request #63 from ByteInternet/add-api_token-and-throw_on_error-to-HypernodeAnnotation-configuration
add api_token and throw_on_error to HypernodeAnnotation configuration
2 parents bd8a30b + 4181bac commit e2ebe89

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

src/AfterDeployTask/HypernodeAnnotation.php

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ class HypernodeAnnotation implements
3636
/**
3737
* @var string
3838
*/
39-
private $apiToken;
39+
private $api_token;
40+
41+
/**
42+
* @var bool
43+
*/
44+
private $throw_on_error;
4045

4146
/**
4247
* HypernodeAnnotation constructor.
@@ -48,12 +53,14 @@ public function __construct(
4853
string $name = null,
4954
string $description = null,
5055
string $app = null,
51-
string $apiToken = null
56+
bool $api_token = null,
57+
bool $throw_on_error = false
5258
) {
5359
$this->name = $name;
5460
$this->description = $description;
5561
$this->app = $app;
56-
$this->apiToken = $apiToken;
62+
$this->api_token = $api_token;
63+
$this->throw_on_error = $throw_on_error;
5764
}
5865

5966
/**
@@ -85,6 +92,14 @@ public function getApp(): ?string
8592
*/
8693
public function getApiToken(): ?string
8794
{
88-
return $this->apiToken;
95+
return $this->api_token;
96+
}
97+
98+
/**
99+
* @return bool
100+
*/
101+
public function getThrowOnError(): ?bool
102+
{
103+
return $this->throw_on_error;
89104
}
90105
}

0 commit comments

Comments
 (0)