type = $type; $this->method = $method; $this->isArrayWrap = $isArrayWrap; RectorAssert::className($type); } public function getObjectType() : ObjectType { return new ObjectType($this->type); } public function getMethod() : string { return $this->method; } public function isArrayWrap() : bool { return $this->isArrayWrap; } }