1 | <?php |
||
14 | class BasketValidationParticipant |
||
15 | { |
||
16 | |||
17 | 2 | public static function fromList(array $values) |
|
27 | |||
28 | 3 | public static function fromValue(\stdClass $value) |
|
32 | |||
33 | /** |
||
34 | * @var \stdClass |
||
35 | */ |
||
36 | protected $source; |
||
37 | |||
38 | /** |
||
39 | * @var User |
||
40 | */ |
||
41 | protected $user; |
||
42 | |||
43 | /** |
||
44 | * @param \stdClass $source |
||
45 | */ |
||
46 | 3 | public function __construct(\stdClass $source) |
|
50 | |||
51 | /** |
||
52 | * @return \stdClass |
||
53 | */ |
||
54 | public function getRawData() |
||
58 | |||
59 | /** |
||
60 | * Get the user |
||
61 | * |
||
62 | * @return User |
||
63 | */ |
||
64 | 3 | public function getUser() |
|
68 | |||
69 | /** |
||
70 | * Tell whether the participant is confirmed |
||
71 | * |
||
72 | * @return bool |
||
73 | */ |
||
74 | 3 | public function isConfirmed() |
|
78 | |||
79 | /** |
||
80 | * Tell whether the participant can agree |
||
81 | * |
||
82 | * @return bool |
||
83 | */ |
||
84 | 3 | public function canAgree() |
|
88 | |||
89 | /** |
||
90 | * Tell whether the participant can see the other participants |
||
91 | * |
||
92 | * @return bool |
||
93 | */ |
||
94 | 3 | public function canSeeOthers() |
|
98 | |||
99 | /** |
||
100 | * Tell whether the participant can access data in readonly mode |
||
101 | * |
||
102 | * @return bool |
||
103 | */ |
||
104 | public function isReadOnly() |
||
108 | } |
||
109 |