protected function getHeader(): \SoapHeader
    {
        if ($this->header) {
            return $this->header;
        }

        return $this->header = new \SoapHeader(static::NAMESPACE, 'UserCredentials', [
            'userid'   => $this->login,
            'password' => $this->password,
        ]);
    }
protected function getHeader(): \SoapHeader
    {
        if ($this->header) {
            return $this->header;
        }

        return $this->header = new \SoapHeader(static::NAMESPACE, 'UserCredentials', [
            'userid'   => $this->login,
            'password' => $this->password,
        ]);
    }
protected function getHeader ( ) : \ SoapHeader { if ( $ this -> header ) { return $ this -> header ; } return $ this -> header = new \ SoapHeader ( static :: NAMESPACE , 'UserCredentials' , [ 'userid' => $ this -> login , 'password' => $ this -> password , ] ) ; }
Returns the header.

@return \SoapHeader
Returns the header .