public function header($namespace, $name, $data = null, $mustUnderstand = false, $actor = null)
  {
    if ($actor) {
      $this->headers[] = new SoapHeader($namespace, $name, $data, $mustUnderstand, $actor);
    } else {
      $this->headers[] = new SoapHeader($namespace, $name, $data, $mustUnderstand);
    }

    return $this;
  }
public function header($namespace, $name, $data = null, $mustUnderstand = false, $actor = null)
  {
    if ($actor) {
      $this->headers[] = new SoapHeader($namespace, $name, $data, $mustUnderstand, $actor);
    } else {
      $this->headers[] = new SoapHeader($namespace, $name, $data, $mustUnderstand);
    }

    return $this;
  }
public function header ( $ namespace , $ name , $ data = null , $ mustUnderstand = false , $ actor = null ) { if ( $ actor ) { $ this -> headers [ ] = new SoapHeader ( $ namespace , $ name , $ data , $ mustUnderstand , $ actor ) ; } else { $ this -> headers [ ] = new SoapHeader ( $ namespace , $ name , $ data , $ mustUnderstand ) ; } return $ this ; }
Create a new SoapHeader

@param string $namespace
@param string $name
@param null   $data
@param bool   $mustUnderstand
@param null   $actor

@return $this
Create a new SoapHeader