From 2d3c051afcf237cb5ef763d82fecfc8a0253f090 Mon Sep 17 00:00:00 2001 From: piolet Date: Tue, 25 May 2021 20:22:09 +0200 Subject: [PATCH 1/3] add simulation mode in base request --- src/Request/BaseRequest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Request/BaseRequest.php b/src/Request/BaseRequest.php index 08d2c53..fc2fdd0 100644 --- a/src/Request/BaseRequest.php +++ b/src/Request/BaseRequest.php @@ -11,6 +11,8 @@ abstract class BaseRequest /** @var string */ protected $method; + + protected bool $simulation_mode; /** * @return string @@ -27,6 +29,11 @@ public function getUri(): string { return $this->uri; } + + public function setSimulationMode(bool $mode): void + { + $this->simulation_mode = $mode; + } abstract public function getQueryArray(): array; From 2cfa4eb605e7ef629f67f060e18f01cf4ea4a3de Mon Sep 17 00:00:00 2001 From: piolet Date: Tue, 25 May 2021 20:24:51 +0200 Subject: [PATCH 2/3] rename simulation_mode to simulationMode --- src/Request/BaseRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Request/BaseRequest.php b/src/Request/BaseRequest.php index fc2fdd0..a6baf00 100644 --- a/src/Request/BaseRequest.php +++ b/src/Request/BaseRequest.php @@ -12,7 +12,7 @@ abstract class BaseRequest /** @var string */ protected $method; - protected bool $simulation_mode; + protected bool $simulationMode; /** * @return string @@ -32,7 +32,7 @@ public function getUri(): string public function setSimulationMode(bool $mode): void { - $this->simulation_mode = $mode; + $this->simulationMode = $mode; } abstract public function getQueryArray(): array; From 27601222757e2db58253b19aa4f66b81972aae81 Mon Sep 17 00:00:00 2001 From: piolet Date: Tue, 25 May 2021 20:25:37 +0200 Subject: [PATCH 3/3] use simulationMode --- src/Request/VocalCampaign/SendVocalCampaignRequest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Request/VocalCampaign/SendVocalCampaignRequest.php b/src/Request/VocalCampaign/SendVocalCampaignRequest.php index 173ae18..da23e11 100644 --- a/src/Request/VocalCampaign/SendVocalCampaignRequest.php +++ b/src/Request/VocalCampaign/SendVocalCampaignRequest.php @@ -59,6 +59,7 @@ public function getQueryArray(): array 'voice_gender' => $this->voiceGender, 'voice_language' => $this->voiceLanguage, 'send_at' => $this->sendAt, + 'simulation_mode' => $this->simulationMode, ], ];