3 declare(strict_types=1);
23 use DateTimeImmutable;
152 if (is_null($this->
id)) {
154 $data = $this->
raw(self::FIELD_ID);
155 if (is_null($data)) {
158 $this->
id = (string) $data;
172 if (is_null($this->version)) {
174 $data = $this->
raw(self::FIELD_VERSION);
175 if (is_null($data)) {
178 $this->version = (int) $data;
192 if (is_null($this->createdAt)) {
194 $data = $this->
raw(self::FIELD_CREATED_AT);
195 if (is_null($data)) {
199 if (
false === $data) {
202 $this->createdAt = $data;
216 if (is_null($this->lastModifiedAt)) {
218 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
219 if (is_null($data)) {
223 if (
false === $data) {
226 $this->lastModifiedAt = $data;
240 if (is_null($this->lastModifiedBy)) {
242 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
243 if (is_null($data)) {
261 if (is_null($this->createdBy)) {
263 $data = $this->
raw(self::FIELD_CREATED_BY);
264 if (is_null($data)) {
283 if (is_null($this->sequenceNumber)) {
285 $data = $this->
raw(self::FIELD_SEQUENCE_NUMBER);
286 if (is_null($data)) {
289 $this->sequenceNumber = (int) $data;
303 if (is_null($this->resource)) {
305 $data = $this->
raw(self::FIELD_RESOURCE);
306 if (is_null($data)) {
310 $this->resource = $className::of($data);
324 if (is_null($this->resourceVersion)) {
326 $data = $this->
raw(self::FIELD_RESOURCE_VERSION);
327 if (is_null($data)) {
330 $this->resourceVersion = (int) $data;
344 if (is_null($this->type)) {
346 $data = $this->
raw(self::FIELD_TYPE);
347 if (is_null($data)) {
350 $this->type = (string) $data;
364 if (is_null($this->resourceUserProvidedIdentifiers)) {
366 $data = $this->
raw(self::FIELD_RESOURCE_USER_PROVIDED_IDENTIFIERS);
367 if (is_null($data)) {
385 if (is_null($this->sku)) {
387 $data = $this->
raw(self::FIELD_SKU);
388 if (is_null($data)) {
391 $this->sku = (string) $data;
405 if (is_null($this->supplyChannel)) {
407 $data = $this->
raw(self::FIELD_SUPPLY_CHANNEL);
408 if (is_null($data)) {
516 #[\ReturnTypeWillChange]
527 return (
object) $data;
setResource(?Reference $resource)
setCreatedAt(?DateTimeImmutable $createdAt)
getResourceUserProvidedIdentifiers()
setResourceUserProvidedIdentifiers(?UserProvidedIdentifiers $resourceUserProvidedIdentifiers)
$resourceUserProvidedIdentifiers
setVersion(?int $version)
const DISCRIMINATOR_VALUE
setResourceVersion(?int $resourceVersion)
__construct(?string $id=null, ?int $version=null, ?DateTimeImmutable $createdAt=null, ?DateTimeImmutable $lastModifiedAt=null, ?LastModifiedBy $lastModifiedBy=null, ?CreatedBy $createdBy=null, ?int $sequenceNumber=null, ?Reference $resource=null, ?int $resourceVersion=null, ?UserProvidedIdentifiers $resourceUserProvidedIdentifiers=null, ?string $sku=null, ?ChannelReference $supplyChannel=null, ?string $type=null)
setSequenceNumber(?int $sequenceNumber)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setCreatedBy(?CreatedBy $createdBy)
setSupplyChannel(?ChannelReference $supplyChannel)