public function filterByParentId(string
$id): self
{ return $this->
filter(fn (ProductEntity
$product) =>
$product->
getParentId() ===
$id);
} /**
* @return list<string>
*/
public function getTaxIds(): array
{ /** @var list<string> $ids */
$ids =
$this->
fmap(fn (ProductEntity
$product) =>
$product->
getTaxId());
return $ids;
} public function filterByTaxId(string
$id): self
{ return $this->
filter(fn (ProductEntity
$product) =>
$product->
getTaxId() ===
$id);
} /**
* @return list<string>
*/