public function addAttribute(AttributeValue $attributeValue) { $this->attributes[$attributeValue->getAttribute()->getUid()] = $attributeValue; return $this; }