/** @inheritdoc */ public function sendSms(ISms $sms) { if (!($handle = @fopen(self::API_URL_POST, 'rb', FALSE, $this->getStreamContext($sms)))) { return FALSE; } $contents = ''; while (!feof($handle)) { $contents .= fread($handle, $this->config->getBlockSize()); } fclose($handle); return $contents; }