| Total Complexity | 3 | 
| Total Lines | 30 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 13 | class Control | ||
| 14 | { | ||
| 15 | /** | ||
| 16 | * @var Shaper[] | ||
| 17 | */ | ||
| 18 | private static $instances = []; | ||
| 19 | |||
| 20 | /** | ||
| 21 | * @param Shaper $shaper | ||
| 22 | */ | ||
| 23 | public static function register(Shaper $shaper) : void | ||
| 24 |     { | ||
| 25 | self::$instances[spl_object_id($shaper)] = $shaper; | ||
| 26 | } | ||
| 27 | |||
| 28 | /** | ||
| 29 | * @param Shaper $shaper | ||
| 30 | */ | ||
| 31 | public static function deregister(Shaper $shaper) : void | ||
| 34 | } | ||
| 35 | |||
| 36 | /** | ||
| 37 | * @param Closure $receiver | ||
| 38 | */ | ||
| 39 | public static function retrieving(Closure $receiver) : void | ||
| 43 | }); | ||
| 44 | } | ||
| 46 |