예제 #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;
 }