31 lines
		
	
	
		
			618 B
		
	
	
	
		
			PHP
		
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			618 B
		
	
	
	
		
			PHP
		
	
	
<?php
 | 
						|
/* ===========================================================================
 | 
						|
 * Copyright (c) 2018-2019 Zindex Software
 | 
						|
 *
 | 
						|
 * Licensed under the MIT License
 | 
						|
 * =========================================================================== */
 | 
						|
 | 
						|
namespace Opis\Closure;
 | 
						|
 | 
						|
 | 
						|
/**
 | 
						|
 * Helper class used to indicate a reference to an object
 | 
						|
 * @internal
 | 
						|
 */
 | 
						|
class SelfReference
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * @var string An unique hash representing the object
 | 
						|
     */
 | 
						|
    public $hash;
 | 
						|
 | 
						|
    /**
 | 
						|
     * Constructor
 | 
						|
     *
 | 
						|
     * @param string $hash
 | 
						|
     */
 | 
						|
    public function __construct($hash)
 | 
						|
    {
 | 
						|
        $this->hash = $hash;
 | 
						|
    }
 | 
						|
} |