diff options
author | Phie <phie@phie.ovh> | 2018-08-21 18:39:12 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2018-08-21 18:39:12 +0300 |
commit | 7d24cc0120859fc4e46b301c08effc97ddfbb1bb (patch) | |
tree | 94b5b52074022ceccd4c91073f217feaec38ca40 /vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php |
first commit for Carnet NC server
Diffstat (limited to 'vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php')
-rw-r--r-- | vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php b/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php new file mode 100644 index 0000000..87576ca --- /dev/null +++ b/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php @@ -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; + } + } +} |