public function __construct($sandbox, $pem, $passphrase = "", $jsonUnescapedUnicode = FALSE, $timeout = 60, $cachedir = "", EventListener $eventListener = null, $logger = null)
{
$this->useSandbox = $sandbox;
$this->pemPath = $pem;
$this->passphrase = $passphrase;
$this->apnStreams = array();
$this->messages = array();
$this->lastMessageId = -1;
$this->jsonUnescapedUnicode = $jsonUnescapedUnicode;
$this->timeout = $timeout;
$this->cachedir = $cachedir;
$this->logger = $logger;
if ($eventListener != null) {
$eventListener->addListener($this);
}
}