getName(), ['brand', 'publisher'], true)) { return $attribute->getValue(); } } foreach ($productDTO->getAttributes() as $attribute) { if ($attribute instanceof AttributeDTO && $attribute->getName() === 'publisher') { return $attribute->getValue(); } } return null; } }