first commit
This commit is contained in:
15
vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php
vendored
Normal file
15
vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
class ClassThatImplementsSerializable implements Serializable
|
||||
{
|
||||
public function serialize()
|
||||
{
|
||||
return get_object_vars($this);
|
||||
}
|
||||
|
||||
public function unserialize($serialized)
|
||||
{
|
||||
foreach (unserialize($serialized) as $key => $value) {
|
||||
$this->{$key} = $value;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user