REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 1.73 KB
Close
/home/certprox/template.certproxywizard.com/wp-content/plugins/hostinger-reach/src/Dto/Cart.php
Text
Base64
<?php namespace Hostinger\Reach\Dto; class Cart { private string $hash; private string $email; private string $currency; private array $items; private array $totals; public function __construct( string $hash, string $email, string $currency, array $items, array $totals ) { $this->hash = $hash; $this->email = $email; $this->currency = $currency; $this->items = $items; $this->totals = $totals; } public function get_hash(): string { return $this->hash; } public function get_currency(): string { return $this->currency; } public function get_email(): string { return $this->email; } public function get_items(): array { return array_map( function ( $item ) { $cart_item = new CartItem( $item['product_id'], $item['quantity'] ); return $cart_item->to_array(); }, $this->items ); } public function get_totals(): array { $totals = Totals::from_cart_totals( $this->totals, $this->currency ); return $totals->to_array(); } public function to_array(): array { return array( 'hash' => $this->get_hash(), 'currency' => $this->get_currency(), 'customer_email' => $this->get_email(), 'items' => $this->get_items(), 'totals' => $this->get_totals(), ); } public static function from_array( array $data ): Cart { return new self( $data['hash'], $data['customer_email'], $data['currency'], $data['items'], $data['totals'], ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Cart.php
1.73 KB
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CartItem.php
2.56 KB
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PluginData.php
5.81 KB
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ReachContact.php
673 B
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Totals.php
1.77 KB
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).