parentType = $parentType; $this->traitNames = $traitNames; RectorAssert::className($parentType); Assert::allString($traitNames); } public function getParentType() : string { return $this->parentType; } /** * @return string[] */ public function getTraitNames() : array { // keep the Trait order the way it is in config return \array_reverse($this->traitNames); } }