Skip to content

Commit

Permalink
Added interface for conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jtejido committed Apr 21, 2018
1 parent b0495d6 commit de5d4ed
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/Geodesy/Conversion/ConversionInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Geodesy\Distance;

interface ConversionInterface
{

public function convert();

}
2 changes: 1 addition & 1 deletion src/Geodesy/Conversion/ECEF2LLA.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Geodesy\Location\ECEF;
use Geodesy\Location\LatLong;

class ECEF2LLA extends BaseConversion
class ECEF2LLA extends BaseConversion implements ConversionInterface
{

protected $ecef;
Expand Down
2 changes: 1 addition & 1 deletion src/Geodesy/Conversion/LLA2ECEF.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Geodesy\Location\ECEF;
use Geodesy\Location\LatLong;

class LLA2ECEF extends BaseConversion
class LLA2ECEF extends BaseConversion implements ConversionInterface
{

protected $latlong;
Expand Down

0 comments on commit de5d4ed

Please sign in to comment.