public function __construct($snapchat, $username, $password, $pre_auth_token = null) { parent::__construct(); $this->snapchat = $snapchat; $this->setProxy($this->snapchat->getProxy()); $this->setVerifyPeer($this->snapchat->shouldVerifyPeer()); $this->username = $username; $this->password = $password; $this->pre_auth_token = $pre_auth_token; }