protected function setParseHeaderValue(AbstractConsumer $consumer)
    {
        parent::setParseHeaderValue($consumer);
        foreach ($this->parts as $part) {
            if ($part instanceof AddressPart) {
                $this->addresses[] = $part;
            } elseif ($part instanceof AddressGroupPart) {
                $this->addresses = array_merge($this->addresses, $part->getAddresses());
                $this->groups[] = $part;
            }
        }
    }
protected function setParseHeaderValue(AbstractConsumer $consumer)
    {
        parent::setParseHeaderValue($consumer);
        foreach ($this->parts as $part) {
            if ($part instanceof AddressPart) {
                $this->addresses[] = $part;
            } elseif ($part instanceof AddressGroupPart) {
                $this->addresses = array_merge($this->addresses, $part->getAddresses());
                $this->groups[] = $part;
            }
        }
    }
protected function setParseHeaderValue ( AbstractConsumer $ consumer ) { parent :: setParseHeaderValue ( $ consumer ) ; foreach ( $ this -> parts as $ part ) { if ( $ part instanceof AddressPart ) { $ this -> addresses [ ] = $ part ; } elseif ( $ part instanceof AddressGroupPart ) { $ this -> addresses = array_merge ( $ this -> addresses , $ part -> getAddresses ( ) ) ; $ this -> groups [ ] = $ part ; } } }
Overridden to extract all addresses into addresses array.

@param AbstractConsumer $consumer
Overridden to extract all addresses into addresses array .