parentType = $parentType; $this->traitNames = $traitNames; } public function getParentObjectType() : \PHPStan\Type\ObjectType { return new \PHPStan\Type\ObjectType($this->parentType); } /** * @return string[] */ public function getTraitNames() : array { // keep the Trait order the way it is in config return \array_reverse($this->traitNames); } }