merge() публичный Метод

Merge the collection with the given items.
public merge ( Collection | array $items ) : Collection
$items Collection | array
Результат Collection
Пример #1
0
 public function testMergeCollection()
 {
     $c = new Collection(array('name' => 'Hello'));
     $this->assertEquals(array('name' => 'World', 'id' => 1), $c->merge(new Collection(array('name' => 'World', 'id' => 1)))->all());
 }