forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<?php | ||
/** | ||
* Start of mysql_xdevapi extension stubs v.0.1 | ||
* @link http://php.net/manual/en/book.mysql-xdevapi.php | ||
* @package mysql_xdevapi | ||
*/ | ||
namespace mysql_xdevapi; | ||
|
||
/** | ||
* @link http://php.net/manual/en/function.mysql-xdevapi-getsession.php | ||
* @param string $uri The URI to the MySQL server, such as mysqlx://user:password@host. | ||
* @return \mysql_xdevapi\Session | ||
*/ | ||
function getSession($uri) {} | ||
|
||
|
||
/** | ||
* Class Collection | ||
* @package mysql_xdevapi | ||
*/ | ||
class Collection { | ||
|
||
/** | ||
* Adds a document to the collection | ||
* @link http://php.net/manual/en/mysql-xdevapi-collection.add.php | ||
* @param mixed $document | ||
* @return \mysql_xdevapi\CollectionAdd | ||
*/ | ||
public function add($document) {} | ||
} | ||
|
||
/** | ||
* Class Session | ||
* @package mysql_xdevapi | ||
*/ | ||
class Session { | ||
/** | ||
* Get the schema | ||
* @link http://php.net/manual/en/mysql-xdevapi-session.getschema.php | ||
* @param string $schema_name name of the schema | ||
* @return \mysql_xdevapi\Schema | ||
*/ | ||
public function getSchema($schema_name) {} | ||
|
||
/** | ||
* Creates a the schema | ||
* @link http://php.net/manual/en/mysql-xdevapi-session.createschema.php | ||
* @param string $schema_name name of the schema | ||
* @return \mysql_xdevapi\Schema | ||
* @throws \mysql_xdevapi\Exception | ||
*/ | ||
public function createSchema($schema_name) {} | ||
|
||
} | ||
|
||
/** | ||
* Class Schema | ||
* @package mysql_xdevapi | ||
*/ | ||
class Schema { | ||
/** | ||
* Get collection from schema | ||
* @link http://php.net/manual/en/mysql-xdevapi-schema.getcollection.php | ||
* @param string $name name of the collection | ||
* @return \mysql_xdevapi\Collection | ||
*/ | ||
public function getCollection($name) {} | ||
} | ||
|
||
/** | ||
* Class Exception | ||
* @package mysql_xdevapi | ||
*/ | ||
class Exception extends \RuntimeException implements \Throwable { | ||
|
||
} | ||
|
||
/** | ||
* Class Result | ||
* @package mysql_xdevapi | ||
*/ | ||
class Result { | ||
|
||
} | ||
|
||
/** | ||
* Class CollectionAdd | ||
* @link http://php.net/manual/en/class.mysql-xdevapi-collectionadd.php | ||
* @package mysql_xdevapi | ||
*/ | ||
class CollectionAdd { | ||
|
||
/** | ||
* Execute the statement | ||
* @link http://php.net/manual/en/mysql-xdevapi-collectionadd.execute.php | ||
* @return \mysql_xdevapi\Result | ||
*/ | ||
public function execute() {} | ||
} |