getClosureScopeClass(); $data = [ 'reflection' => $reflection, 'code' => $reflection->getCode(), 'hasThis' => $reflection->isBindingRequired(), 'context' => $reflection->getUseVariables(), 'hasRefs' => false, 'binding' => $reflection->getClosureThis(), 'scope' => $scope ? $scope->getName() : null, 'isStatic' => $reflection->isStatic(), ]; return $data; } /** * @param array $data * @return mixed */ protected function determineCode(array &$data) { return null; } /** * @param array $data * @return mixed */ protected function determineContext(array &$data) { return null; } }