PDepend\Source\Language\PHP\PHPBuilder::freeze PHP Method

freeze() protected method

This method will freeze the actual builder state and create a second runtime scope.
Since: 0.9.5
protected freeze ( ) : void
return void
    protected function freeze()
    {
        if ($this->frozen === true) {
            return;
        }
        $this->frozen = true;
        $this->frozenTraits = $this->copyTypesWithPackage($this->traits);
        $this->frozenClasses = $this->copyTypesWithPackage($this->classes);
        $this->frozenInterfaces = $this->copyTypesWithPackage($this->interfaces);
        $this->traits = array();
        $this->classes = array();
        $this->interfaces = array();
    }
PHPBuilder