3 declare(strict_types=1);
19 use DateTimeImmutable;
91 if (is_null($this->key)) {
93 $data = $this->
raw(self::FIELD_KEY);
97 $this->key = (string) $data;
111 if (is_null($this->addedAt)) {
113 $data = $this->
raw(self::FIELD_ADDED_AT);
114 if (is_null($data)) {
118 if (
false === $data) {
121 $this->addedAt = $data;
135 if (is_null($this->custom)) {
137 $data = $this->
raw(self::FIELD_CUSTOM);
138 if (is_null($data)) {
156 if (is_null($this->description)) {
158 $data = $this->
raw(self::FIELD_DESCRIPTION);
159 if (is_null($data)) {
177 if (is_null($this->name)) {
179 $data = $this->
raw(self::FIELD_NAME);
180 if (is_null($data)) {
198 if (is_null($this->quantity)) {
200 $data = $this->
raw(self::FIELD_QUANTITY);
201 if (is_null($data)) {
204 $this->quantity = (int) $data;
260 #[\ReturnTypeWillChange]
267 return (
object) $data;
setAddedAt(?DateTimeImmutable $addedAt)
__construct(?string $key=null, ?DateTimeImmutable $addedAt=null, ?CustomFieldsDraft $custom=null, ?LocalizedString $description=null, ?LocalizedString $name=null, ?int $quantity=null)
setDescription(?LocalizedString $description)
setName(?LocalizedString $name)
setCustom(?CustomFieldsDraft $custom)
setQuantity(?int $quantity)