初始化代码
This commit is contained in:
186
vendor/swoole/ide-helper/output/swoole_async/namespace/Async/Client.php
vendored
Normal file
186
vendor/swoole/ide-helper/output/swoole_async/namespace/Async/Client.php
vendored
Normal file
@@ -0,0 +1,186 @@
|
||||
<?php
|
||||
|
||||
namespace Swoole\Async;
|
||||
|
||||
class Client
|
||||
{
|
||||
|
||||
const MSG_OOB = 1;
|
||||
|
||||
const MSG_PEEK = 2;
|
||||
|
||||
const MSG_DONTWAIT = 64;
|
||||
|
||||
const MSG_WAITALL = 256;
|
||||
|
||||
const SHUT_RDWR = 2;
|
||||
|
||||
const SHUT_RD = 0;
|
||||
|
||||
const SHUT_WR = 1;
|
||||
|
||||
public $errCode = 0;
|
||||
|
||||
public $sock = -1;
|
||||
|
||||
public $type = 0;
|
||||
|
||||
public $setting = null;
|
||||
|
||||
private $onConnect = null;
|
||||
|
||||
private $onError = null;
|
||||
|
||||
private $onReceive = null;
|
||||
|
||||
private $onClose = null;
|
||||
|
||||
private $onBufferFull = null;
|
||||
|
||||
private $onBufferEmpty = null;
|
||||
|
||||
private $onSSLReady = null;
|
||||
|
||||
public function __construct($type)
|
||||
{
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function set(array $settings)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function connect($host, $port = null, $timeout = null, $sock_flag = null)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function send($data, $flag = null)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function sendfile($filename, $offset = null, $length = null)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function sendto($ip, $port, $data)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function sleep()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function wakeup()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function pause()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function resume()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function shutdown($how)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function enableSSL(callable $callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getPeerCert()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function verifyPeerCert()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function isConnected()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getsockname()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getpeername()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function close($force = null)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function on($event_name, callable $callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getSocket()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
162
vendor/swoole/ide-helper/output/swoole_async/namespace/Async/http/client.php
vendored
Normal file
162
vendor/swoole/ide-helper/output/swoole_async/namespace/Async/http/client.php
vendored
Normal file
@@ -0,0 +1,162 @@
|
||||
<?php
|
||||
|
||||
namespace Swoole\Http;
|
||||
|
||||
class Client
|
||||
{
|
||||
|
||||
public $type = 0;
|
||||
|
||||
public $errCode = 0;
|
||||
|
||||
public $errMsg = '';
|
||||
|
||||
public $statusCode = 0;
|
||||
|
||||
public $host = null;
|
||||
|
||||
public $port = 0;
|
||||
|
||||
public $ssl = false;
|
||||
|
||||
public $requestMethod = null;
|
||||
|
||||
public $requestHeaders = null;
|
||||
|
||||
public $requestBody = null;
|
||||
|
||||
public $uploadFiles = null;
|
||||
|
||||
public $set_cookie_headers = null;
|
||||
|
||||
public $downloadFile = null;
|
||||
|
||||
public $headers = null;
|
||||
|
||||
public $cookies = null;
|
||||
|
||||
public $body = null;
|
||||
|
||||
public $onConnect = null;
|
||||
|
||||
public $onError = null;
|
||||
|
||||
public $onMessage = null;
|
||||
|
||||
public $onClose = null;
|
||||
|
||||
public function __construct($host, $port = null, $ssl = null)
|
||||
{
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function set(array $settings)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function setMethod($method)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function setHeaders(array $headers)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function setCookies(array $cookies)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function execute($path, $callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function push($data, $opcode = null, $finish = null)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function get($path, $callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function post($path, $data, $callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function upgrade($path, $callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function download($path, $file, $callback, $offset = null)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function isConnected()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function close()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function on($event_name, $callback)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
114
vendor/swoole/ide-helper/output/swoole_async/namespace/Async/mysql.php
vendored
Normal file
114
vendor/swoole/ide-helper/output/swoole_async/namespace/Async/mysql.php
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
|
||||
namespace Swoole;
|
||||
|
||||
class MySQL
|
||||
{
|
||||
|
||||
const STATE_QUERY = 0;
|
||||
|
||||
const STATE_READ_START = 1;
|
||||
|
||||
const STATE_READ_FIELD = 2;
|
||||
|
||||
const STATE_READ_ROW = 3;
|
||||
|
||||
const STATE_READ_END = 5;
|
||||
|
||||
const STATE_CLOSED = 6;
|
||||
|
||||
public $serverInfo = null;
|
||||
|
||||
public $sock = -1;
|
||||
|
||||
public $connected = false;
|
||||
|
||||
public $errno = 0;
|
||||
|
||||
public $connect_errno = 0;
|
||||
|
||||
public $error = null;
|
||||
|
||||
public $connect_error = null;
|
||||
|
||||
public $insert_id = null;
|
||||
|
||||
public $affected_rows = null;
|
||||
|
||||
public $onConnect = null;
|
||||
|
||||
public $onClose = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function connect(array $server_config, $callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function begin($callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function commit($callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function rollback($callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function escape($string, $flags = null)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function query($sql, $callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function close()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getState()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function on($event_name, $callback)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
80
vendor/swoole/ide-helper/output/swoole_async/namespace/Async/redis.php
vendored
Normal file
80
vendor/swoole/ide-helper/output/swoole_async/namespace/Async/redis.php
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
namespace Swoole;
|
||||
|
||||
class Redis
|
||||
{
|
||||
|
||||
const STATE_CONNECT = 0;
|
||||
|
||||
const STATE_READY = 1;
|
||||
|
||||
const STATE_WAIT_RESULT = 2;
|
||||
|
||||
const STATE_SUBSCRIBE = 3;
|
||||
|
||||
const STATE_CLOSED = 4;
|
||||
|
||||
public $onConnect = null;
|
||||
|
||||
public $onClose = null;
|
||||
|
||||
public $onMessage = null;
|
||||
|
||||
public $setting = null;
|
||||
|
||||
public $host = null;
|
||||
|
||||
public $port = null;
|
||||
|
||||
public $sock = null;
|
||||
|
||||
public $errCode = null;
|
||||
|
||||
public $errMsg = null;
|
||||
|
||||
public function __construct(?array $setting = null)
|
||||
{
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function on($event_name, $callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function connect($host, $port, $callback)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function close()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getState()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function __call($command, $params)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user