BBnepal-Accounts/hostel/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassThatImplementsSerializable.php
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

16 lines
322 B
PHP

<?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;
}
}
}