Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns the name of the class of an object
<?php get_class(object $object = ?): string
<?php     public function equals(Collection $that, callable $func = null): bool

    {

        if (is_null($func)) {

            return get_class($this) === get_class($that) && $this->items === $that->items;

        }
<?php     public function merge(Collection $that)

    {

        if (get_class($this) !== get_class($that)) {

            throw new \Exception('CollectionTypeError::cannotMergeDifferentTypes');

        }

        return new static(array_merge($this->items, $that->items));