| 1 |
<?php |
| 2 |
/* =========================================================================== |
| 3 |
* Copyright (c) 2018-2021 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 |
} |