File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments