You are here

class SimpleSerializableAsset in Zircon Profile 8

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

Base serializable test asset

@author Marco Pivetta <ocramius@gmail.com>

Hierarchy

Expanded class hierarchy of SimpleSerializableAsset

File

vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SimpleSerializableAsset.php, line 30

Namespace

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

Namesort descending Modifiers Type Description Overrides
SimpleSerializableAsset::serialize public function
SimpleSerializableAsset::unserialize public function Should not be called
SimpleSerializableAsset::__construct public function Constructor - should not be called