public function remove($attributeCode, $value, array $context = null)
    {
        $attribute = $this->getAttribute($attributeCode);

        $method = 'remove'.ucfirst($attributeCode);
        if (method_exists($this, $method)) {
            return $this->$method($value, $context);
        }

        return $this->removeValueData($attribute, $value, $context);
    }
public function remove($attributeCode, $value, array $context = null)
    {
        $attribute = $this->getAttribute($attributeCode);

        $method = 'remove'.ucfirst($attributeCode);
        if (method_exists($this, $method)) {
            return $this->$method($value, $context);
        }

        return $this->removeValueData($attribute, $value, $context);
    }
public function remove ( $ attributeCode , $ value , array $ context = null ) { $ attribute = $ this -> getAttribute ( $ attributeCode ) ; $ method = 'remove' . ucfirst ( $ attributeCode ) ; if ( method_exists ( $ this , $ method ) ) { return $ this -> $ method ( $ value , $ context ) ; } return $ this -> removeValueData ( $ attribute , $ value , $ context ) ; }
Search the value in the collection and remove it

@param string     $attributeCode
@param mixed      $value
@param array|null $context

@throws InvalidValueDataException
@throws MissingAttributeException
@throws ContextException

@return DataInterface
Search the value in the collection and remove it