magickatt/MultiContextBDDTalk

View on GitHub
backend/src/HistoricalMeteorological/Collection/YearCollection.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
 
namespace HistoricalMeteorological\Collection;
 
class YearCollection implements CollectionInterface
{
private $elements = [];
 
public function __construct(array $elements = [])
{
$this->elements = $elements;
}
 
public function toArray()
{
return $this->elements;
}
 
public function merge(CollectionInterface $collection)
{
$this->elements = array_merge($this->elements, $collection->toArray());
return $this;
}
Expected 1 newline at end of file; 0 found
}