-
Notifications
You must be signed in to change notification settings - Fork 97
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
1 parent
3819054
commit 179ca9b
Showing
4 changed files
with
56 additions
and
2 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
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
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
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,46 @@ | ||
<?php | ||
|
||
namespace Doctrine\Common\Collections; | ||
|
||
use ArrayAccess; | ||
use Countable; | ||
use IteratorAggregate; | ||
|
||
/** | ||
* @template TKey of array-key | ||
* @template T | ||
* @extends IteratorAggregate<TKey, T> | ||
* @extends ArrayAccess<TKey, T> | ||
* @extends ReadableCollection<TKey, T> | ||
*/ | ||
interface Collection extends Countable, IteratorAggregate, ArrayAccess, ReadableCollection | ||
{ | ||
|
||
/** | ||
* @phpstan-impure | ||
* | ||
* @param T $element | ||
* | ||
* @return void | ||
*/ | ||
public function add($element) {} | ||
|
||
/** | ||
* @phpstan-impure | ||
* | ||
* @param TKey $key | ||
* | ||
* @return T|null | ||
*/ | ||
public function remove($key) {} | ||
|
||
/** | ||
* @phpstan-impure | ||
* | ||
* @param T $element | ||
* | ||
* @return bool | ||
*/ | ||
public function removeElement($element) {} | ||
|
||
} |