You are here

class UnCloneableAsset in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/UnCloneableAsset.php \DoctrineTest\InstantiatorTestAsset\UnCloneableAsset

Base un-cloneable asset

@author Marco Pivetta <ocramius@gmail.com>

Hierarchy

Expanded class hierarchy of UnCloneableAsset

File

vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/UnCloneableAsset.php, line 29

Namespace

DoctrineTest\InstantiatorTestAsset
View 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

Namesort descending Modifiers Type Description Overrides
UnCloneableAsset::__clone public function Magic `__clone` - should not be invoked
UnCloneableAsset::__construct public function Constructor - should not be called