Skip to content

Commit df68cc5

Browse files
Rodion LiuboretsLuborRod
authored andcommitted
SDK-1840 Change places for required parametres
1 parent b511814 commit df68cc5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/DocScan/Session/Create/NotificationConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class NotificationConfig implements \JsonSerializable
3232
/**
3333
* NotificationConfig constructor.
3434
* @param string|null $authToken
35-
* @param string|null $authType
3635
* @param string|null $endpoint
3736
* @param array<string> $topics
37+
* @param string|null $authType
3838
*/
39-
public function __construct(?string $authToken, ?string $authType, ?string $endpoint, array $topics = [])
39+
public function __construct(?string $authToken, ?string $endpoint, array $topics = [], ?string $authType = '')
4040
{
4141
$this->authToken = $authToken;
4242
$this->authType = $authType;

src/DocScan/Session/Create/NotificationConfigBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,6 @@ public function forSessionCompletion(): self
119119
*/
120120
public function build(): NotificationConfig
121121
{
122-
return new NotificationConfig($this->authToken, $this->authType, $this->endpoint, $this->topics);
122+
return new NotificationConfig($this->authToken, $this->endpoint, $this->topics, $this->authType);
123123
}
124124
}

0 commit comments

Comments
 (0)