public function removeAttribute(AttributeInterface $attribute) { $this->attributes->removeElement($attribute); return $this; }