Skip to content

Commit cd211d5

Browse files
author
Codeliner
committed
ChapterThree: Add business descriptions
1 parent 2bda5db commit cd211d5

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

module/Application/src/Application/Domain/Model/Cargo/Itinerary.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
/**
1616
* Itinerary
17+
*
18+
* The Itinerary is a ValueObject that describes a route of a cargo.
19+
* It is composed of one or more Legs.
20+
* Each Leg describes a part of the entire route, f.e. from one port to another.
1721
*
1822
* @author Alexander Miertsch <[email protected]>
1923
*/

module/Application/src/Application/Domain/Model/Cargo/Leg.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
/**
1616
* Class Leg
17+
*
18+
* A Leg is part of an Itinerary. It describes a voyage from one location to another, with concrete load und unload times.
1719
*
1820
* @author Alexander Miertsch <[email protected]>
1921
*/
@@ -40,7 +42,7 @@ class Leg implements ValueObjectInterface
4042
private $unloadTime;
4143

4244
/**
43-
* @param string $aLoadLocation
45+
* @param string $aLoadLocation
4446
* @param string $anUnloadLocation
4547
* @param \DateTime $aLoadTime
4648
* @param \DateTime $anUnloadTime
@@ -54,7 +56,6 @@ public function __construct($aLoadLocation,
5456
$this->unloadLocation = $anUnloadLocation;
5557
$this->loadTime = $aLoadTime;
5658
$this->unloadTime = $anUnloadTime;
57-
5859
}
5960

6061
/**

module/Application/src/Application/Domain/Model/Cargo/RouteSpecification.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
/**
1515
* RouteSpecification
16+
*
17+
* Describes where a cargo origin and destination is.
1618
*
1719
* @author Alexander Miertsch <[email protected]>
1820
*/

module/Application/src/Application/Service/RoutingService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
/**
2020
* Class RoutingService
2121
*
22+
* The RoutingService takes a RouteSpecification, that describes the start location and the end location of a cargo
23+
* and fetches compatible routes that are described by Itineraries.
24+
*
2225
* @package Application\Service
2326
* @author Alexander Miertsch <[email protected]>
2427
*/

0 commit comments

Comments
 (0)