Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / var-dumper / Cloner / Stub.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\VarDumper\Cloner;
13
14 /**
15  * Represents the main properties of a PHP variable.
16  *
17  * @author Nicolas Grekas <p@tchwork.com>
18  */
19 class Stub implements \Serializable
20 {
21     const TYPE_REF = 1;
22     const TYPE_STRING = 2;
23     const TYPE_ARRAY = 3;
24     const TYPE_OBJECT = 4;
25     const TYPE_RESOURCE = 5;
26
27     const STRING_BINARY = 1;
28     const STRING_UTF8 = 2;
29
30     const ARRAY_ASSOC = 1;
31     const ARRAY_INDEXED = 2;
32
33     public $type = self::TYPE_REF;
34     public $class = '';
35     public $value;
36     public $cut = 0;
37     public $handle = 0;
38     public $refCount = 0;
39     public $position = 0;
40     public $attr = array();
41
42     /**
43      * @internal
44      */
45     public function serialize()
46     {
47         return \serialize(array($this->class, $this->position, $this->cut, $this->type, $this->value, $this->handle, $this->refCount, $this->attr));
48     }
49
50     /**
51      * @internal
52      */
53     public function unserialize($serialized)
54     {
55         list($this->class, $this->position, $this->cut, $this->type, $this->value, $this->handle, $this->refCount, $this->attr) = \unserialize($serialized);
56     }
57 }