public function setType(AceType $type) { $this->type = $type instanceof AceType ? $type : new AceType($type); return $this; }