value = $value; return $this; } public function set_currency( string $currency ): self { $this->currency = $currency; return $this; } /** * @throws WC_Vipps_Recurring_Missing_Value_Exception */ public function to_array( bool $check_required = false ): array { if ( $check_required ) { $this->check_required(); } return [ "value" => $this->value, "currency" => $this->currency, ]; } }