class UnCloneableAsset in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/UnCloneableAsset.php \DoctrineTest\InstantiatorTestAsset\UnCloneableAsset
Base un-cloneable asset
@author Marco Pivetta <ocramius@gmail.com>
Hierarchy
- class \DoctrineTest\InstantiatorTestAsset\UnCloneableAsset
Expanded class hierarchy of UnCloneableAsset
File
- vendor/
doctrine/ instantiator/ tests/ DoctrineTest/ InstantiatorTestAsset/ UnCloneableAsset.php, line 29
Namespace
DoctrineTest\InstantiatorTestAssetView source
class UnCloneableAsset {
/**
* Constructor - should not be called
*
* @throws BadMethodCallException
*/
public function __construct() {
throw new BadMethodCallException('Not supposed to be called!');
}
/**
* Magic `__clone` - should not be invoked
*
* @throws BadMethodCallException
*/
public function __clone() {
throw new BadMethodCallException('Not supposed to be called!');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UnCloneableAsset:: |
public | function | Magic `__clone` - should not be invoked | |
UnCloneableAsset:: |
public | function | Constructor - should not be called |