Analyzer.php
5 years ago
ClosureContext.php
5 years ago
ClosureScope.php
5 years ago
ClosureStream.php
5 years ago
ISecurityProvider.php
5 years ago
ReflectionClosure.php
5 years ago
SecurityException.php
5 years ago
SecurityProvider.php
5 years ago
SelfReference.php
5 years ago
SerializableClosure.php
5 years ago
SelfReference.php
31 lines
| 1 | <?php |
| 2 | /* =========================================================================== |
| 3 | * Copyright (c) 2018-2019 Zindex Software |
| 4 | * |
| 5 | * Licensed under the MIT License |
| 6 | * =========================================================================== */ |
| 7 | |
| 8 | namespace Opis\Closure; |
| 9 | |
| 10 | |
| 11 | /** |
| 12 | * Helper class used to indicate a reference to an object |
| 13 | * @internal |
| 14 | */ |
| 15 | class SelfReference |
| 16 | { |
| 17 | /** |
| 18 | * @var string An unique hash representing the object |
| 19 | */ |
| 20 | public $hash; |
| 21 | |
| 22 | /** |
| 23 | * Constructor |
| 24 | * |
| 25 | * @param string $hash |
| 26 | */ |
| 27 | public function __construct($hash) |
| 28 | { |
| 29 | $this->hash = $hash; |
| 30 | } |
| 31 | } |