Skip to content

Commit 9d56308

Browse files
committed
add language to voice parameter
1 parent e6f84b8 commit 9d56308

File tree

11 files changed

+300
-3
lines changed

11 files changed

+300
-3
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/markdown.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php-client.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/phpunit.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ $client->sms($params
3131
<details>
3232
<summary>Analytics</summary>
3333

34-
3534
<ul>
3635
<li>analytics(array options = [], string $groupBy = 'date'): AbstractAnalytic[]</li>
3736
<li>analyticsByCountry(array options = []): AnalyticByCountry[]</li>
@@ -164,4 +163,4 @@ particular API key. SMS77_RECIPIENT is the recipient of the test SMS.
164163

165164
Need help? Feel free to [contact us](https://www.seven.io/en/company/contact/).
166165

167-
[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](./LICENSE)
166+
[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE)

src/Params/VoiceParams.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class VoiceParams extends AbstractParams implements VoiceParamsInterface {
66
protected $debug;
77
protected $from;
88
protected $json;
9+
protected $language;
910
protected $text;
1011
protected $to;
1112
protected $xml;
@@ -69,4 +70,14 @@ public function setXml(?bool $xml): self {
6970

7071
return $this;
7172
}
73+
74+
public function getLanguage(): ?string {
75+
return $this->language;
76+
}
77+
78+
public function setLanguage(?string $language): self {
79+
$this->language = $language;
80+
81+
return $this;
82+
}
7283
}

src/Params/VoiceParamsInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ public function getDebug(): ?bool;
77

88
public function getFrom(): ?string;
99

10+
public function getLanguage(): ?string;
11+
1012
public function getJson(): ?bool;
1113

1214
public function getText(): ?string;
@@ -21,6 +23,8 @@ public function setFrom(?string $from);
2123

2224
public function setJson(?bool $json);
2325

26+
public function setLanguage();
27+
2428
public function setText(string $text);
2529

2630
public function setTo(string $to);

0 commit comments

Comments
 (0)