Skip to content
This repository has been archived by the owner on Dec 12, 2019. It is now read-only.

Commit

Permalink
Transport types
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Oct 26, 2017
1 parent 0b7e636 commit 8c92d9f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ProvisioningRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function hydrate($from)
{
parent::hydrate($from);
$this->configuration = ValueAs::arr($this->configuration);
$this->type = new RequestType($this->type);
return $this;
}

Expand Down
7 changes: 7 additions & 0 deletions src/ProvisioningResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@ class ProvisioningResponse extends ProvisioningBaseData
* @var LogMessage[]
*/
public $log;

public function hydrate($from)
{
parent::hydrate($from);
$this->type = new ResponseType($this->type);
return $this;
}
}
2 changes: 1 addition & 1 deletion tests/ProvisionerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ProvisionerTest extends TestCase
public function testTransport()
{
$request = new ProvisioningRequest();
$request->type = RequestType::ACTIVATE;
$request->type = new RequestType(RequestType::ACTIVATE);
$request->orderFid = 'FID:ORD:1505751823:OGmYqUzfJVtKr';
$request->productFid = 'FID:PROD:1505752039:z5DvVoA3HuAF';
$request->priceFid = 'FID:PROD:PRCE:1505752100:ZJneYwx';
Expand Down

0 comments on commit 8c92d9f

Please sign in to comment.