Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function getCode()
 {
     $this->assertAttributeIsSet();
     return $this->attribute->getCode();
 }
Пример #2
0
 /**
  * @param AttributeInterface $attribute
  */
 public function addAttribute(AttributeInterface $attribute)
 {
     $this->attributes[$attribute->getCode()] = $attribute;
 }