You are here

class SerializableArrayObjectAsset in Zircon Profile 8.0

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

Serializable test asset that also extends an internal class

@author Marco Pivetta <ocramius@gmail.com>

Hierarchy

Expanded class hierarchy of SerializableArrayObjectAsset

File

vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTestAsset/SerializableArrayObjectAsset.php, line 31

Namespace

DoctrineTest\InstantiatorTestAsset
View source
class SerializableArrayObjectAsset extends ArrayObject 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
SerializableArrayObjectAsset::serialize public function
SerializableArrayObjectAsset::unserialize public function Should not be called
SerializableArrayObjectAsset::__construct public function Constructor - should not be called