/home/techb158/dev.balacoffee.com/vendor/ramsey/collection/src
NameSizeModeActions
Exception/-0755rm
Map/-0755rm
Tool/-0755rm
AbstractArray.php43720644editdlrm
AbstractCollection.php121030644editdlrm
AbstractSet.php10490644editdlrm
ArrayInterface.php10610644editdlrm
Collection.php23310644editdlrm
CollectionInterface.php91580644editdlrm
DoubleEndedQueue.php42880644editdlrm
DoubleEndedQueueInterface.php103610644editdlrm
GenericArray.php5120644editdlrm
Queue.php36610644editdlrm
QueueInterface.php73890644editdlrm
Set.php15740644editdlrm
Sort.php6210644editdlrm
Edit: /home/techb158/dev.balacoffee.com/vendor/ramsey/collection/src/AbstractSet.php (1049B)
* @license http://opensource.org/licenses/MIT MIT */ declare(strict_types=1); namespace Ramsey\Collection; /** * This class contains the basic implementation of a collection that does not * allow duplicated values (a set), to minimize the effort required to implement * this specific type of collection. * * @template T * @extends AbstractCollection */ abstract class AbstractSet extends AbstractCollection { public function add(mixed $element): bool { if ($this->contains($element)) { return false; } return parent::add($element); } public function offsetSet(mixed $offset, mixed $value): void { if ($this->contains($value)) { return; } parent::offsetSet($offset, $value); } }