-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathCartSession.php
More file actions
34 lines (29 loc) · 964 Bytes
/
CartSession.php
File metadata and controls
34 lines (29 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php declare(strict_types=1);
namespace App\Collaboration\Cart;
use DateTimeInterface;
use Ibexa\Contracts\Cart\Value\CartInterface;
use Ibexa\Contracts\Collaboration\Participant\ParticipantCollectionInterface;
use Ibexa\Contracts\Collaboration\Session\AbstractSession;
use Ibexa\Contracts\Core\Repository\Values\User\User;
final class CartSession extends AbstractSession
{
private CartInterface $cart;
public function __construct(
int $id,
CartInterface $cart,
string $token,
User $owner,
ParticipantCollectionInterface $participants,
bool $isActive,
bool $hasPublicLink,
DateTimeInterface $createdAt,
DateTimeInterface $updatedAt
) {
$this->cart = $cart;
parent::__construct($id, $token, $owner, $participants, $isActive, $hasPublicLink, $createdAt, $updatedAt);
}
public function getCart(): CartInterface
{
return $this->cart;
}
}