label = $Label; $this->viewLocation = $ViewLocation; } #[\ReturnTypeWillChange] public function jsonSerialize() { return (object)[ 'action' => $this->action, 'label' => $this->label, 'viewLocation' => $this->viewLocation, ]; } }