function = $function; $this->class = $class; $this->methodIfArgs = $methodIfArgs; $this->methodIfNoArgs = $methodIfNoArgs; } public function getFunction() : string { return $this->function; } public function getClass() : string { return $this->class; } public function getMethodIfNoArgs() : ?string { return $this->methodIfNoArgs; } public function getMethodIfArgs() : ?string { return $this->methodIfArgs; } }