-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add stubs for SplDoublyLinkedList #5293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,118 @@ | ||
<?php | ||
|
||
class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializable | ||
{ | ||
/** | ||
* @param mixed $index | ||
* @param mixed $value | ||
* @return void | ||
*/ | ||
public function add($index, $value) {} | ||
|
||
/** @return mixed */ | ||
public function pop() {} | ||
|
||
/** @return mixed */ | ||
public function shift() {} | ||
|
||
/** | ||
* @param mixed $value | ||
* @return void | ||
*/ | ||
public function push($value) {} | ||
|
||
/** | ||
* @param mixed $value | ||
* @return void | ||
*/ | ||
public function unshift($value) {} | ||
|
||
/** @return mixed */ | ||
public function top() {} | ||
|
||
/** @return mixed */ | ||
public function bottom() {} | ||
|
||
/** @return int */ | ||
public function count() {} | ||
|
||
/** @return bool */ | ||
public function isEmpty() {} | ||
|
||
/** @return int */ | ||
public function setIteratorMode(int $mode) {} | ||
|
||
/** @return int */ | ||
public function getIteratorMode() {} | ||
|
||
/** | ||
* @param int $index | ||
* @return bool | ||
*/ | ||
public function offsetExists($index) {} | ||
|
||
/** | ||
* @param mixed $index | ||
* @return mixed | ||
*/ | ||
public function offsetGet($index) {} | ||
|
||
/** | ||
* @param mixed $index | ||
* @param mixed $value | ||
* @return void | ||
*/ | ||
public function offsetSet($index, $value) {} | ||
|
||
/** | ||
* @param mixed $index | ||
* @return void | ||
*/ | ||
public function offsetUnset($index) {} | ||
|
||
/** @return void */ | ||
public function rewind() {} | ||
|
||
/** @return mixed */ | ||
public function current() {} | ||
|
||
/** @return int */ | ||
public function key() {} | ||
|
||
/** @return void */ | ||
public function prev() {} | ||
|
||
/** @return void */ | ||
public function next() {} | ||
|
||
/** @return bool */ | ||
public function valid() {} | ||
|
||
/** @return void */ | ||
public function unserialize(string $serialized) {} | ||
|
||
/** @return string */ | ||
public function serialize() {} | ||
|
||
/** @return array */ | ||
public function __serialize() {} | ||
|
||
/** @return void */ | ||
public function __unserialize(array $data) {} | ||
} | ||
|
||
class SplQueue extends SplDoublyLinkedList | ||
{ | ||
/** | ||
* @param mixed $value | ||
* @return void | ||
*/ | ||
public function enqueue($value) {} | ||
|
||
/** @return mixed */ | ||
public function dequeue() {} | ||
} | ||
|
||
class SplStack extends SplDoublyLinkedList | ||
{ | ||
} |
This file contains hidden or 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,69 @@ | ||
/* This is a generated file, edit the .stub.php file instead. */ | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplDoublyLinkedList_add, 0, 0, 2) | ||
ZEND_ARG_INFO(0, index) | ||
ZEND_ARG_INFO(0, value) | ||
ZEND_END_ARG_INFO() | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplDoublyLinkedList_pop, 0, 0, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_class_SplDoublyLinkedList_shift arginfo_class_SplDoublyLinkedList_pop | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplDoublyLinkedList_push, 0, 0, 1) | ||
ZEND_ARG_INFO(0, value) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_class_SplDoublyLinkedList_unshift arginfo_class_SplDoublyLinkedList_push | ||
|
||
#define arginfo_class_SplDoublyLinkedList_top arginfo_class_SplDoublyLinkedList_pop | ||
|
||
#define arginfo_class_SplDoublyLinkedList_bottom arginfo_class_SplDoublyLinkedList_pop | ||
|
||
#define arginfo_class_SplDoublyLinkedList_count arginfo_class_SplDoublyLinkedList_pop | ||
|
||
#define arginfo_class_SplDoublyLinkedList_isEmpty arginfo_class_SplDoublyLinkedList_pop | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplDoublyLinkedList_setIteratorMode, 0, 0, 1) | ||
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_class_SplDoublyLinkedList_getIteratorMode arginfo_class_SplDoublyLinkedList_pop | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplDoublyLinkedList_offsetExists, 0, 0, 1) | ||
ZEND_ARG_INFO(0, index) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_class_SplDoublyLinkedList_offsetGet arginfo_class_SplDoublyLinkedList_offsetExists | ||
|
||
#define arginfo_class_SplDoublyLinkedList_offsetSet arginfo_class_SplDoublyLinkedList_add | ||
|
||
#define arginfo_class_SplDoublyLinkedList_offsetUnset arginfo_class_SplDoublyLinkedList_offsetExists | ||
|
||
#define arginfo_class_SplDoublyLinkedList_rewind arginfo_class_SplDoublyLinkedList_pop | ||
|
||
#define arginfo_class_SplDoublyLinkedList_current arginfo_class_SplDoublyLinkedList_pop | ||
|
||
#define arginfo_class_SplDoublyLinkedList_key arginfo_class_SplDoublyLinkedList_pop | ||
|
||
#define arginfo_class_SplDoublyLinkedList_prev arginfo_class_SplDoublyLinkedList_pop | ||
|
||
#define arginfo_class_SplDoublyLinkedList_next arginfo_class_SplDoublyLinkedList_pop | ||
|
||
#define arginfo_class_SplDoublyLinkedList_valid arginfo_class_SplDoublyLinkedList_pop | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplDoublyLinkedList_unserialize, 0, 0, 1) | ||
ZEND_ARG_TYPE_INFO(0, serialized, IS_STRING, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_class_SplDoublyLinkedList_serialize arginfo_class_SplDoublyLinkedList_pop | ||
|
||
#define arginfo_class_SplDoublyLinkedList___serialize arginfo_class_SplDoublyLinkedList_pop | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplDoublyLinkedList___unserialize, 0, 0, 1) | ||
ZEND_ARG_TYPE_INFO(0, data, IS_ARRAY, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_class_SplQueue_enqueue arginfo_class_SplDoublyLinkedList_push | ||
|
||
#define arginfo_class_SplQueue_dequeue arginfo_class_SplDoublyLinkedList_pop |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.