public function getHeader($name)
    {
        $headerSet = $this->getSwiftMessage()->getHeaders();
        if (!$headerSet->has($name)) {
            return [];
        }

        $headers = [];
        foreach ($headerSet->getAll($name) as $header) {
            $headers[] = $header->getValue();
        }
        return $headers;
    }
public function getHeader($name)
    {
        $headerSet = $this->getSwiftMessage()->getHeaders();
        if (!$headerSet->has($name)) {
            return [];
        }

        $headers = [];
        foreach ($headerSet->getAll($name) as $header) {
            $headers[] = $header->getValue();
        }
        return $headers;
    }
public function getHeader ( $ name ) { $ headerSet = $ this -> getSwiftMessage ( ) -> getHeaders ( ) ; if ( ! $ headerSet -> has ( $ name ) ) { return [ ] ; } $ headers = [ ] ; foreach ( $ headerSet -> getAll ( $ name ) as $ header ) { $ headers [ ] = $ header -> getValue ( ) ; } return $ headers ; }
Returns all values for the specified header.
@param string $name header name.
@return array header values list.
@since 2.0.6
Returns all values for the specified header .