class SimpleSerializableAsset in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SimpleSerializableAsset.php \DoctrineTest\InstantiatorTestAsset\SimpleSerializableAsset
Base serializable test asset
@author Marco Pivetta <ocramius@gmail.com>
Hierarchy
- class \DoctrineTest\InstantiatorTestAsset\SimpleSerializableAsset implements \Serializable
Expanded class hierarchy of SimpleSerializableAsset
File
- vendor/
doctrine/ instantiator/ tests/ DoctrineTest/ InstantiatorTestAsset/ SimpleSerializableAsset.php, line 30
Namespace
DoctrineTest\InstantiatorTestAssetView source
class SimpleSerializableAsset implements Serializable {
/**
* Constructor - should not be called
*
* @throws BadMethodCallException
*/
public function __construct() {
throw new BadMethodCallException('Not supposed to be called!');
}
/**
* {@inheritDoc}
*/
public function serialize() {
return '';
}
/**
* {@inheritDoc}
*
* Should not be called
*
* @throws BadMethodCallException
*/
public function unserialize($serialized) {
throw new BadMethodCallException('Not supposed to be called!');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SimpleSerializableAsset:: |
public | function | ||
SimpleSerializableAsset:: |
public | function | Should not be called | |
SimpleSerializableAsset:: |
public | function | Constructor - should not be called |