Postmark\PostmarkClientBase::__construct PHP Метод

__construct() защищенный Метод

protected __construct ( $token, $header, $timeout = 30 )
    protected function __construct($token, $header, $timeout = 30)
    {
        $this->authorization_header = $header;
        $this->authorization_token = $token;
        $this->version = phpversion();
        $this->os = PHP_OS;
        $this->timeout = $timeout;
    }

Usage Example

Пример #1
0
 /**
  * Create a new PostmarkClient.
  *
  * @param string $serverToken The token associated with "Server" you'd like to use to send/receive email from.
  * @param integer $timeout The timeout, in seconds to wait for an API call to complete before throwing an Exception.
  */
 function __construct($serverToken, $timeout = 30)
 {
     parent::__construct($serverToken, 'X-Postmark-Server-Token', $timeout);
 }
All Usage Examples Of Postmark\PostmarkClientBase::__construct