Skip to content

Commit 8549f65

Browse files
committed
Handle client serialization
1 parent f7f8894 commit 8549f65

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/Client.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ public function __construct(SoapFactory $soapFactory, $host, $login, $password,
5252
$this->url = sprintf('%s://%s/rpc/services/', $scheme, $host);
5353
}
5454

55+
/**
56+
* Prepare the instance for serialization.
57+
*
58+
* @return string[]
59+
*/
60+
public function __sleep()
61+
{
62+
return ['soapFactory', 'url'];
63+
}
64+
5565
/**
5666
* Dynamically retrieve the specified model.
5767
*

0 commit comments

Comments
 (0)