Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/FortySixElksSMS.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class FortySixElksSMS extends FortySixElksMedia implements FortySixElksMediaInte

public $type = 'SMS';
protected $flash = 'no';
protected $dry = 'no';
protected $dryrun = 'no';
protected $whendelivered = null;
protected $log = false;
protected $dontlog = null;

/**
* FortySixElksSMS constructor.
Expand All @@ -34,9 +34,9 @@ public function send()
'message' => $this->getContent(),
'to' => $this->phone_number,
'flashsms' => $this->flash,
'dryrun' => $this->dry,
'dryrun' => $this->dryrun,
'whendelivered' => $this->whendelivered,
'dontlog' => $this->log,
'dontlog' => $this->dontlog,
],

]);
Expand Down Expand Up @@ -65,9 +65,9 @@ public function flash()
/**
* @return $this
*/
public function dry()
public function dryrun()
{
$this->dry = $this->payload['dryrun'] ?? 'yes';
$this->dryrun = $this->payload['dryrun'] ?? 'yes';

return $this;
}
Expand All @@ -87,9 +87,9 @@ public function whendelivered($url)
/**
* @return $this
*/
public function dontLog()
public function dontlog()
{
$this->log = $this->payload['dontLog'] ?? 'message';
$this->dontlog = $this->payload['dontlog'] ?? 'message';

return $this;
}
Expand Down