for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\GeoLocation\Google\Directions\Entities;
use Illuminate\Support\Collection;
/**
* Class StepCollection
*
* @package Arcanedev\GeoLocation\Google\Directions\Entities
* @author ARCANEDEV <[email protected]>
*/
class StepCollection extends Collection
{
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
* Load the steps data into the collection.
* @param array $steps
* @return self
public static function load(array $steps)
$collect = new static();
foreach ($steps as $step) {
$collect->push(new Step($step));
}
return $collect;