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

        // We need to make sure the value we're given isn't empty before adding it into our components.
        if (! empty($value)) {
            $this->components[$component][] = $value;
        }
    }
protected function addComponent($component, $value)
    {
        $this->validateComponentExists($component);

        // We need to make sure the value we're given isn't empty before adding it into our components.
        if (! empty($value)) {
            $this->components[$component][] = $value;
        }
    }
protected function addComponent ( $ component , $ value ) { $ this -> validateComponentExists ( $ component ) ; // We need to make sure the value we're given isn't empty before adding it into our components. if ( ! empty ( $ value ) ) { $ this -> components [ $ component ] [ ] = $ value ; } }
Adds a component to the distinguished name.

@param string $component
@param string $value

@throws \UnexpectedValueException When the given name does not exist.
Adds a component to the distinguished name .