for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DH\NavigationBundle\Model\Routing;
class Leg
{
/**
* @var array
*/
private $start;
private $end;
* @var Step[]|array
private $steps;
public function __construct(array $data)
$this->start = $data['start'] ?? [];
$this->end = $data['end'] ?? [];
$this->steps = $data['steps'] ?? [];
}
* @return array
public function getStart(): array
return $this->start;
public function getEnd(): array
return $this->end;
* @return Step[]|array
public function getSteps(): array
return $this->steps;