Skip to content

Commit

Permalink
update some sent information
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubenglicky committed Jul 3, 2018
1 parent 289962c commit ac26e62
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions phpstan.neon
@@ -0,0 +1,3 @@
parameters:
autoload_directories:
- ./src/SmsManager/Diagnostics
7 changes: 4 additions & 3 deletions src/SmsManager/Diagnostics/DebugClient.php
Expand Up @@ -7,8 +7,9 @@

namespace jakubenglicky\SmsManager\Diagnostics;

use jakubenglicky\SmsManager\Diagnostics\Response;
use jakubenglicky\SmsManager\Http\Response\Error;
use jakubenglicky\SmsManager\Http\Response\Sent;
use jakubenglicky\SmsManager\Http\Response\UserInfo;
use jakubenglicky\SmsManager\IClient;
use jakubenglicky\SmsManager\Message\Message;

Expand All @@ -21,7 +22,7 @@ class DebugClient implements IClient

/**
* DebugClient constructor.
* @param $tempDir
* @param string $tempDir
*/
public function __construct($tempDir)
{
Expand All @@ -32,7 +33,7 @@ public function __construct($tempDir)
/**
* Fake send for debugging
* @param Message $message
* @return Response
* @return Sent
*/
public function send(Message $message)
{
Expand Down
3 changes: 3 additions & 0 deletions src/SmsManager/Http/Responses/Sent.php
Expand Up @@ -58,6 +58,9 @@ public function __construct(ResponseInterface $response, Message $message)
$this->code = 200;
$this->requestId = $items[1];
$this->recepitiens = explode(',', $items[2]);
} else {
$this->sent = false;
$this->code = $items[1];
}
}

Expand Down

0 comments on commit ac26e62

Please sign in to comment.