Skip to content

Commit

Permalink
Handle client serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
robgridley committed Mar 23, 2018
1 parent f7f8894 commit 8549f65
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ public function __construct(SoapFactory $soapFactory, $host, $login, $password,
$this->url = sprintf('%s://%s/rpc/services/', $scheme, $host);
}

/**
* Prepare the instance for serialization.
*
* @return string[]
*/
public function __sleep()
{
return ['soapFactory', 'url'];
}

/**
* Dynamically retrieve the specified model.
*
Expand Down

0 comments on commit 8549f65

Please sign in to comment.