| 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 |
* Closure context class |
| 12 |
* @internal |
| 13 |
*/ |
| 14 |
class ClosureContext |
| 15 |
{ |
| 16 |
/** |
| 17 |
* @var ClosureScope Closures scope |
| 18 |
*/ |
| 19 |
public $scope; |
| 20 |
|
| 21 |
/** |
| 22 |
* @var integer |
| 23 |
*/ |
| 24 |
public $locks; |
| 25 |
|
| 26 |
/** |
| 27 |
* Constructor |
| 28 |
*/ |
| 29 |
public function __construct() |
| 30 |
{ |
| 31 |
$this->scope = new ClosureScope(); |
| 32 |
$this->locks = 0; |
| 33 |
} |
| 34 |
} |