1 | <?php |
||
14 | class BasketValidationChoice |
||
15 | { |
||
16 | |||
17 | 1 | public static function fromList(array $values) |
|
27 | |||
28 | 1 | public static function fromValue(\stdClass $value) |
|
32 | |||
33 | /** |
||
34 | * @var \stdClass |
||
35 | */ |
||
36 | protected $source; |
||
37 | |||
38 | /** |
||
39 | * @var \DateTime|null |
||
40 | */ |
||
41 | protected $updatedOn; |
||
42 | |||
43 | /** |
||
44 | * @var BasketValidationParticipant |
||
45 | */ |
||
46 | protected $participant; |
||
47 | |||
48 | /** |
||
49 | * @param \stdClass $source |
||
50 | */ |
||
51 | 1 | public function __construct(\stdClass $source) |
|
55 | |||
56 | /** |
||
57 | * @return \stdClass |
||
58 | */ |
||
59 | public function getRawData() |
||
63 | |||
64 | /** |
||
65 | * Get the validation user |
||
66 | * |
||
67 | * @return BasketValidationParticipant |
||
68 | */ |
||
69 | 1 | public function getParticipant() |
|
75 | |||
76 | /** |
||
77 | * Get last update date |
||
78 | * |
||
79 | * @return \DateTime |
||
80 | */ |
||
81 | 1 | public function getUpdatedOn() |
|
85 | |||
86 | /** |
||
87 | * Get the annotation about the validation of the current authenticated user |
||
88 | * |
||
89 | * @return int |
||
90 | */ |
||
91 | 1 | public function getNote() |
|
95 | |||
96 | /** |
||
97 | * Get the agreement of the current authenticated user |
||
98 | * |
||
99 | * - null : no response yet |
||
100 | * - true : accepted |
||
101 | * - false: rejected |
||
102 | * |
||
103 | * @return null|boolean |
||
104 | */ |
||
105 | 1 | public function getAgreement() |
|
109 | } |
||
110 |