Skip to content

Commit 638c7e3

Browse files
authored
Adding simulation mode handler
Simulation mode allows you to fake your request. Only first level validations will be processed.
1 parent e1ab5fd commit 638c7e3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/Request/SmsCampaign/SendSmsCampaignRequest.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ class SendSmsCampaignRequest extends BaseRequest
3535
/** @var string */
3636
private $sendAt;
3737

38+
/** @var bool */
39+
private $simulationMode;
40+
3841
public function __construct()
3942
{
4043
$this->method = HttpMethodEnum::POST;
@@ -173,4 +176,20 @@ public function setSendAt(string $sendAt): void
173176
{
174177
$this->sendAt = $sendAt;
175178
}
179+
180+
/**
181+
* @return bool
182+
*/
183+
public function getSimulationMode(): bool
184+
{
185+
return $this->simulationMode;
186+
}
187+
188+
/**
189+
* @param bool $simulationMode
190+
*/
191+
public function setSimulationMode(bool $simulationMode): void
192+
{
193+
$this->simulationMode = $simulationMode;
194+
}
176195
}

0 commit comments

Comments
 (0)