public function link($origin, $destination)
    {
        $delivery = new Delivery($origin, $destination);
        $this->deliveries[] = $delivery;
        return $delivery;
    }
public function link($origin, $destination)
    {
        $delivery = new Delivery($origin, $destination);
        $this->deliveries[] = $delivery;
        return $delivery;
    }
public function link ( $ origin , $ destination ) { $ delivery = new Delivery ( $ origin , $ destination ) ; $ this -> deliveries [ ] = $ delivery ; return $ delivery ; }
This method allows you to create deliveries from two locations. It's only used by the
JsonToJob converter, you cannot create you own route.

@param Location $origin
@param Location $destination
@return Delivery

@see JsonToJob
This method allows you to create deliveries from two locations . It s only used by the JsonToJob converter you cannot create you own route .