class ObjectSerialization

Same name in other branches
  1. 9 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization
  2. 8.9.x core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization
  3. 10 core/lib/Drupal/Core/Test/ObjectSerialization.php \Drupal\Core\Test\ObjectSerialization

Object to test that security issues around serialization.

Hierarchy

Expanded class hierarchy of ObjectSerialization

File

core/lib/Drupal/Core/Test/ObjectSerialization.php, line 8

Namespace

Drupal\Core\Test
View source
class ObjectSerialization {
    
    /**
     * ObjectSerialization constructor.
     */
    public function __construct() {
        throw new \Exception('This object should never be constructed');
    }
    
    /**
     * ObjectSerialization destructor.
     */
    public function __destruct() {
        throw new \Exception('This object should never be destructed');
    }

}

Members

Title Sort descending Modifiers Object type Summary
ObjectSerialization::__construct public function ObjectSerialization constructor.
ObjectSerialization::__destruct public function ObjectSerialization destructor.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.