__construct() публичный Метод

Constructor.
public __construct ( string $privateKey, string $domainName, string $selector )
$privateKey string
$domainName string
$selector string
Пример #1
0
 public function __construct($privateKey, $domainName, $selector)
 {
     parent::__construct($privateKey, $domainName, $selector);
     if (extension_loaded('dkim')) {
         $this->_peclLoaded = true;
     }
 }
Пример #2
0
 public function __construct($privateKey, $domainName, $selector)
 {
     if (!extension_loaded('opendkim')) {
         throw new Swift_SwiftException('php-opendkim extension not found');
     }
     $this->peclLoaded = true;
     parent::__construct($privateKey, $domainName, $selector);
 }