# sequra/4.0.0/src/Dto/class-cart-info.php

seQura, version 4.0.0. 37 lines.

- Page: https://pluginprobe.com/plugins/sequra/4.0.0/code/src/Dto/class-cart-info.php
- Raw: https://pluginprobe.com/plugins/sequra/4.0.0/raw/src/Dto/class-cart-info.php
- Modified: 2024-10-29T15:19:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sequra/4.0.0/code/src/Dto/class-cart-info.php#L10-L20`.

```php
<?php
/**
 * Cart Info DTO
 *
 * @package    SeQura/WC
 */

namespace SeQura\WC\Dto;

/**
 * Cart Info DTO.
 */
class Cart_Info extends Dto {

	/**
	 * Unique identifier
	 * 
	 * @var string
	 */
	public $ref;

	/**
	 * ISO 8601 date of creation
	 * 
	 * @var string
	 */
	public $created_at;

	/**
	 * Constructor
	 */
	public function __construct( ?string $ref = null, ?string $created_at = null ) {
		$this->ref        = $ref ? $ref : uniqid();
		$this->created_at = $created_at ? $created_at : gmdate( 'c' );
	}
}

```
