PHPStan\Analyser\Scope::__construct PHP Method

__construct() public method

public __construct ( Broker $broker, Standard $printer, string $file, boolean $declareStrictTypes = false, string $class = null, PHPStan\Reflection\ParametersAcceptor $function = null, string $namespace = null, array $variablesTypes = [], string $inClosureBindScopeClass = null, PHPStan\Type\Type $inAnonymousFunctionReturnType = null, ClassReflection $anonymousClass = null, PhpParser\Node\Expr $inFunctionCall = null, boolean $negated = false, array $moreSpecificTypes = [], array $currentlyAssignedVariables = [] )
$broker PHPStan\Broker\Broker
$printer PhpParser\PrettyPrinter\Standard
$file string
$declareStrictTypes boolean
$class string
$function PHPStan\Reflection\ParametersAcceptor
$namespace string
$variablesTypes array
$inClosureBindScopeClass string
$inAnonymousFunctionReturnType PHPStan\Type\Type
$anonymousClass PHPStan\Reflection\ClassReflection
$inFunctionCall PhpParser\Node\Expr
$negated boolean
$moreSpecificTypes array
$currentlyAssignedVariables array
    public function __construct(Broker $broker, \PhpParser\PrettyPrinter\Standard $printer, string $file, bool $declareStrictTypes = false, string $class = null, \PHPStan\Reflection\ParametersAcceptor $function = null, string $namespace = null, array $variablesTypes = [], string $inClosureBindScopeClass = null, Type $inAnonymousFunctionReturnType = null, ClassReflection $anonymousClass = null, Expr $inFunctionCall = null, bool $negated = false, array $moreSpecificTypes = [], array $currentlyAssignedVariables = [])
    {
        if ($class === '') {
            $class = null;
        }
        if ($namespace === '') {
            $namespace = null;
        }
        $this->broker = $broker;
        $this->printer = $printer;
        $this->file = $file;
        $this->declareStrictTypes = $declareStrictTypes;
        $this->class = $class;
        $this->function = $function;
        $this->namespace = $namespace;
        $this->variableTypes = $variablesTypes;
        $this->inClosureBindScopeClass = $inClosureBindScopeClass;
        $this->inAnonymousFunctionReturnType = $inAnonymousFunctionReturnType;
        $this->anonymousClass = $anonymousClass;
        $this->inFunctionCall = $inFunctionCall;
        $this->negated = $negated;
        $this->moreSpecificTypes = $moreSpecificTypes;
        $this->currentlyAssignedVariables = $currentlyAssignedVariables;
    }

Same methods

Scope::__construct ( Broker $broker, Standard $printer, string $file, string $analysedContextFile = null, boolean $declareStrictTypes = false, string $class = null, PHPStan\Reflection\ParametersAcceptor $function = null, string $namespace = null, array $variablesTypes = [], string $inClosureBindScopeClass = null, PHPStan\Type\Type $inAnonymousFunctionReturnType = null, ClassReflection $anonymousClass = null, PhpParser\Node\Expr $inFunctionCall = null, boolean $negated = false, array $moreSpecificTypes = [], array $currentlyAssignedVariables = [] )