PluginProbe
seQura / 4.0.0
seQura v4.0.0
4.3.4 4.3.3 4.3.2 4.3.1 trunk 2.0.0 2.0.10 2.0.11 2.0.12 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.2 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 4.0.0 All 30 releases
sequra / src / Dto / class-cart-info.php

class-cart-info.php in seQura 4.0.0, at src/Dto/class-cart-info.php

37 lines 518 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Cart Info DTO
4 *
5 * @package SeQura/WC
6 */
7
8 namespace SeQura\WC\Dto;
9
10 /**
11 * Cart Info DTO.
12 */
13 class Cart_Info extends Dto {
14
15 /**
16 * Unique identifier
17 *
18 * @var string
19 */
20 public $ref;
21
22 /**
23 * ISO 8601 date of creation
24 *
25 * @var string
26 */
27 public $created_at;
28
29 /**
30 * Constructor
31 */
32 public function __construct( ?string $ref = null, ?string $created_at = null ) {
33 $this->ref = $ref ? $ref : uniqid();
34 $this->created_at = $created_at ? $created_at : gmdate( 'c' );
35 }
36 }
37