Elcodi\Component\Product\Entity\Product::removeAttribute PHP Method

removeAttribute() public method

Removes an attribute from the collection.
public removeAttribute ( Elcodi\Component\Attribute\Entity\Interfaces\AttributeInterface $attribute )
$attribute Elcodi\Component\Attribute\Entity\Interfaces\AttributeInterface Attribute to be removed
    public function removeAttribute(AttributeInterface $attribute)
    {
        $this->attributes->removeElement($attribute);
        return $this;
    }