ClosureContext.php 625 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /* ===========================================================================
  3. * Copyright (c) 2018-2019 Zindex Software
  4. *
  5. * Licensed under the MIT License
  6. * =========================================================================== */
  7. namespace Opis\Closure;
  8. /**
  9. * Closure context class
  10. * @internal
  11. */
  12. class ClosureContext
  13. {
  14. /**
  15. * @var ClosureScope Closures scope
  16. */
  17. public $scope;
  18. /**
  19. * @var integer
  20. */
  21. public $locks;
  22. /**
  23. * Constructor
  24. */
  25. public function __construct()
  26. {
  27. $this->scope = new ClosureScope();
  28. $this->locks = 0;
  29. }
  30. }