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();
}