expectedType = $expectedType; } public function getExpectedType() : string { return $this->expectedType; } }