• Full name: \App\Infrastructure\Services\Product\Event\ProductCreated
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Properties

product

public array $product

actorId

public string|null $actorId

context

public array $context

occurredAt

public \Qubus\Support\DateTime\QubusDateTimeImmutable $occurredAt

Methods

__construct

public __construct(array{'id': string, 'title': string, 'slug': string, 'body': string, 'author': string, 'sku': string, 'price': string|null, 'purchaseUrl': int, 'showInMenu': int, 'showInSearch': int, 'featuredImage': string, 'status': string, 'created': string, 'createdGmt': string, 'published': string, 'publishedGmt': string} $product, string|null $actorId = null, array $context = [], \Qubus\Support\DateTime\QubusDateTimeImmutable $occurredAt = new \Qubus\Support\DateTime\QubusDateTimeImmutable(time: 'now')): mixed

Parameters:

Parameter Type Description
$product array{'id': string, 'title': string, 'slug': string, 'body': string, 'author': string, 'sku': string, 'price': string|null, 'purchaseUrl': int, 'showInMenu': int, 'showInSearch': int, 'featuredImage': string, 'status': string, 'created': string, 'createdGmt': string, 'published': string, 'publishedGmt': string}
$actorId string|null
$context array
$occurredAt \Qubus\Support\DateTime\QubusDateTimeImmutable