Mercurial > hg > isophonics-drupal-site
view vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php @ 9:1fc0ff908d1f
Add another data file
author | Chris Cannam |
---|---|
date | Mon, 05 Feb 2018 12:34:32 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?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; } } }