Copied!

CodeGeneratorContext

CodeGeneratorContext.php : 14

Methods

public__construct()

CodeGeneratorContext.php : 28
public __construct(ProductTypeInterface $type[, array<string, mixed> $attributes = [] ][, ProductInterface|null $baseProduct = null ][, int|null $index = null ])

Parameters

Name Type Default value Description
$type ProductTypeInterface - -
$attributes array<string, mixed> [] -
$baseProduct ProductInterface|null null -
$index int|null null -

publicgetAttributes()

CodeGeneratorContext.php : 48
public getAttributes() : array<string, mixed>

Return values

array<string, mixed>

publicgetBaseProduct()

CodeGeneratorContext.php : 66
public getBaseProduct() : ProductInterface|null

Return values

ProductInterface|null

publicgetIndex()

CodeGeneratorContext.php : 76
public getIndex() : int|null

Return values

int|null

publicgetType()

CodeGeneratorContext.php : 40
public getType() : ProductTypeInterface

Return values

ProductTypeInterface

publichasBaseProduct()

CodeGeneratorContext.php : 61
public hasBaseProduct() : bool

Return values

bool

publichasIndex()

CodeGeneratorContext.php : 86
public hasIndex() : bool

Return values

bool

publicsetAttributes()

CodeGeneratorContext.php : 56
public setAttributes(array<string, mixed> $attributes) : void

Parameters

Name Type Default value Description
$attributes array<string, mixed> - -

publicsetBaseProduct()

CodeGeneratorContext.php : 71
public setBaseProduct(ProductInterface|null $baseProduct) : void

Parameters

Name Type Default value Description
$baseProduct ProductInterface|null - -

publicsetIndex()

CodeGeneratorContext.php : 81
public setIndex(int|null $index) : void

Parameters

Name Type Default value Description
$index int|null - -