public function filterByProductId(string
$id): self
{ return $this->
filter(fn (ProductConfiguratorSettingEntity
$productConfigurator) =>
$productConfigurator->
getProductId() ===
$id);
} /**
* @return array<string>
*/
public function getOptionIds(): array
{ return $this->
fmap(fn (ProductConfiguratorSettingEntity
$productConfigurator) =>
$productConfigurator->
getOptionId());
} public function filterByOptionId(string
$id): self
{ return $this->
filter(fn (ProductConfiguratorSettingEntity
$productConfigurator) =>
$productConfigurator->
getOptionId() ===
$id);
} public function getOptions(): PropertyGroupOptionCollection
{ return new PropertyGroupOptionCollection( $this->
fmap(fn (ProductConfiguratorSettingEntity
$productConfigurator) =>
$productConfigurator->
getOption()) );