order = $order; } public function getOrder(): \WC_Order { return $this->order; } public function getEmail(): string { return $this->order->get_billing_email(); } public function getId(): int { return $this->order->get_id(); } }