<?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));