protected function removeComponent($component, $value)
    {
        $this->validateComponentExists($component);

        $this->components[$component] = array_diff($this->components[$component], [$value]);
    }
protected function removeComponent($component, $value)
    {
        $this->validateComponentExists($component);

        $this->components[$component] = array_diff($this->components[$component], [$value]);
    }
protected function removeComponent ( $ component , $ value ) { $ this -> validateComponentExists ( $ component ) ; $ this -> components [ $ component ] = array_diff ( $ this -> components [ $ component ] , [ $ value ] ) ; }
Removes the given value from the given component.

@param string $component
@param string $value

@throws \UnexpectedValueException When the given component does not exist.

@return void
Removes the given value from the given component .