/** * {@inheritdoc} */ public function get($attributeSetId) { /** @var AttributeSet $attributeSet */ $attributeSet = $this->attributeSetFactory->create(); $this->attributeSetResource->load($attributeSet, $attributeSetId); if (!$attributeSet->getId()) { throw NoSuchEntityException::singleField('id', $attributeSetId); } return $attributeSet; }