SelfReference.php 618 B

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