Completed
Push — develop ( 7cfe1b...a79e07 )
by Dieter
07:00
created
src/Amadeus/Client/Struct/PriceXplorer/DepartureDays.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -30,31 +30,31 @@
 block discarded – undo
30 30
  */
31 31
 class DepartureDays
32 32
 {
33
-	/**
34
-	 * @var DaySelection
35
-	 */
36
-	public $daySelection;
37
-	/**
38
-	 * @var DaySelection
39
-	 */
40
-	public $additionalDaySelection;
41
-	/**
42
-	 * @var SelectionInfo
43
-	 */
44
-	public $selectionInfo;
33
+ /**
34
+  * @var DaySelection
35
+  */
36
+ public $daySelection;
37
+ /**
38
+  * @var DaySelection
39
+  */
40
+ public $additionalDaySelection;
41
+ /**
42
+  * @var SelectionInfo
43
+  */
44
+ public $selectionInfo;
45 45
 	
46
-	/**
47
-	 * @param array $weekDays Week days in array format: e.g. array(1, 2) for Monday and Tuesday. MUST BE CONSECUTIVE DAYS
48
-	 * @param string $departureDayOption 
49
-	 */
50
-	public function __construct($weekDays = [], $departureDayOption = null)
51
-	{
52
-		$this->daySelection = new DaySelection($weekDays);
46
+ /**
47
+  * @param array $weekDays Week days in array format: e.g. array(1, 2) for Monday and Tuesday. MUST BE CONSECUTIVE DAYS
48
+  * @param string $departureDayOption 
49
+  */
50
+ public function __construct($weekDays = [], $departureDayOption = null)
51
+ {
52
+  $this->daySelection = new DaySelection($weekDays);
53 53
 		
54
-		if ($departureDayOption === null) {
55
-			$this->selectionInfo = new SelectionInfo();
56
-		} else {
57
-			$this->selectionInfo = new SelectionInfo($departureDayOption);
58
-		}
59
-	}
54
+  if ($departureDayOption === null) {
55
+   $this->selectionInfo = new SelectionInfo();
56
+  } else {
57
+   $this->selectionInfo = new SelectionInfo($departureDayOption);
58
+  }
59
+ }
60 60
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/PriceXplorer/LocationInfo.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -30,35 +30,35 @@
 block discarded – undo
30 30
  */
31 31
 class LocationInfo
32 32
 {
33
-	/**
34
-	 * Location Types: 
35
-	 * 25 	City
36
-	 * 26 	Country
37
-	 * A 	Airport
38
-	 * R 	Region
39
-	 */
40
-	const LOC_CITY = 25;
33
+ /**
34
+  * Location Types: 
35
+  * 25 	City
36
+  * 26 	Country
37
+  * A 	Airport
38
+  * R 	Region
39
+  */
40
+ const LOC_CITY = 25;
41 41
 	
42
-	const LOC_COUNTRY = 26;
42
+ const LOC_COUNTRY = 26;
43 43
 	
44
-	const LOC_AIRPORT = "A";
44
+ const LOC_AIRPORT = "A";
45 45
 	
46
-	const LOC_REGION = "R";
46
+ const LOC_REGION = "R";
47 47
 	
48
-	/**
49
-	 * @var string
50
-	 */
51
-	public $locationType;
52
-	/**
53
-	 * @var LocationIdentificationType
54
-	 */
55
-	public $locationDescription;
48
+ /**
49
+  * @var string
50
+  */
51
+ public $locationType;
52
+ /**
53
+  * @var LocationIdentificationType
54
+  */
55
+ public $locationDescription;
56 56
 	
57
-	/**
58
-	 * @param string|int $locationType One of the constants self::LOC_*
59
-	 */
60
-	public function __construct($locationType)
61
-	{
62
-		$this->locationType = $locationType;
63
-	}
57
+ /**
58
+  * @param string|int $locationType One of the constants self::LOC_*
59
+  */
60
+ public function __construct($locationType)
61
+ {
62
+  $this->locationType = $locationType;
63
+ }
64 64
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/PriceXplorer/SelectionInfo.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -30,16 +30,16 @@
 block discarded – undo
30 30
  */
31 31
 class SelectionInfo
32 32
 {
33
-	/**
34
-	 * @var SelectionDetails[]
35
-	 */
36
-	public $selectionDetails = [];
33
+ /**
34
+  * @var SelectionDetails[]
35
+  */
36
+ public $selectionDetails = [];
37 37
 	
38
-	/**
39
-	 * @param string $departureDayOption SelectionDetails::OPT_*
40
-	 */
41
-	public function __construct($departureDayOption = SelectionDetails::OPT_OUTBOUND_DEP_DAYS)
42
-	{
43
-		$this->selectionDetails[] = new SelectionDetails($departureDayOption);
44
-	}
38
+ /**
39
+  * @param string $departureDayOption SelectionDetails::OPT_*
40
+  */
41
+ public function __construct($departureDayOption = SelectionDetails::OPT_OUTBOUND_DEP_DAYS)
42
+ {
43
+  $this->selectionDetails[] = new SelectionDetails($departureDayOption);
44
+ }
45 45
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/PriceXplorer/NbOfUnitsInfo.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -30,18 +30,18 @@
 block discarded – undo
30 30
  */
31 31
 class NbOfUnitsInfo
32 32
 {
33
-	/**
34
-	 * @var NumberOfUnitDetailsType[]
35
-	 */
36
-	public $quantityDetails = [];
33
+ /**
34
+  * @var NumberOfUnitDetailsType[]
35
+  */
36
+ public $quantityDetails = [];
37 37
 	
38
-	/**
39
-	 * @param int $numberOfDays
40
-	 */
41
-	public function __construct($numberOfDays = null)
42
-	{
43
-		if ($numberOfDays !== null) {
44
-			$this->quantityDetails[] = new NumberOfUnitDetailsType($numberOfDays);
45
-		}
46
-	}
38
+ /**
39
+  * @param int $numberOfDays
40
+  */
41
+ public function __construct($numberOfDays = null)
42
+ {
43
+  if ($numberOfDays !== null) {
44
+   $this->quantityDetails[] = new NumberOfUnitDetailsType($numberOfDays);
45
+  }
46
+ }
47 47
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/PriceXplorer/SelectionDetails.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,33 +30,33 @@
 block discarded – undo
30 30
  */
31 31
 class SelectionDetails
32 32
 {
33
-	const OPT_INBOUND_DEP_DAYS = "I";
33
+ const OPT_INBOUND_DEP_DAYS = "I";
34 34
 	
35
-	const OPT_OUTBOUND_DEP_DAYS = "O";
35
+ const OPT_OUTBOUND_DEP_DAYS = "O";
36 36
 	
37
-	/*
37
+ /*
38 38
 	 * PRD 	Price result distribution
39 39
 	 * TWD 	Time window distribution
40 40
 	 */
41
-	const OPT_PRICE_RESULT_DISTRIBUTION = "PRD";
41
+ const OPT_PRICE_RESULT_DISTRIBUTION = "PRD";
42 42
 	
43
-	const OPT_TIME_WINDOW_DISTRIBUTION = "TWD";
43
+ const OPT_TIME_WINDOW_DISTRIBUTION = "TWD";
44 44
 	
45 45
 	
46
-	/**
47
-	 * @var string
48
-	 */
49
-	public $option;
50
-	/**
51
-	 * @var string
52
-	 */
53
-	public $optionInformation;
46
+ /**
47
+  * @var string
48
+  */
49
+ public $option;
50
+ /**
51
+  * @var string
52
+  */
53
+ public $optionInformation;
54 54
 	
55
-	/**
56
-	 * @param string $option self::OPT_*
57
-	 */
58
-	public function __construct($option)
59
-	{
60
-		$this->option = $option;
61
-	}
55
+ /**
56
+  * @param string $option self::OPT_*
57
+  */
58
+ public function __construct($option)
59
+ {
60
+  $this->option = $option;
61
+ }
62 62
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/PriceXplorer/NumberOfUnitDetailsType.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 class NumberOfUnitDetailsType
32 32
 {
33 33
 	
34
-	/*
34
+ /*
35 35
 	 * https://webservices.amadeus.com/extranet/structures/viewMessageStructure.do?id=2338&serviceVersionId=2304&isQuery=true#
36 36
 	 * 	CNS 	Cheapest non-stop
37 37
 	 * 	COP 	Cheapest over all price
@@ -39,36 +39,36 @@  discard block
 block discarded – undo
39 39
 	 * 	MTH 	Month
40 40
 	 * 	PR 	Number of price results
41 41
 	 */
42
-	const QUAL_CHEAPEST_NONSTOP = "CNS";
42
+ const QUAL_CHEAPEST_NONSTOP = "CNS";
43 43
 	
44
-	const QUAL_CHEAPEST_OVERALL = "COP";
44
+ const QUAL_CHEAPEST_OVERALL = "COP";
45 45
 	
46
-	const QUAL_DAY = "DAY";
46
+ const QUAL_DAY = "DAY";
47 47
 	
48
-	const QUAL_MONTH = "MTH";
48
+ const QUAL_MONTH = "MTH";
49 49
 	
50
-	const QUAL_NR_OF_PRICE_RESULTS = "PR";
50
+ const QUAL_NR_OF_PRICE_RESULTS = "PR";
51 51
 	
52 52
 	
53
-	/**
54
-	 * @var int
55
-	 */
56
-	public $numberOfUnit;
53
+ /**
54
+  * @var int
55
+  */
56
+ public $numberOfUnit;
57 57
 	
58
-	/**
59
-	 * @var string self::QUAL_*
60
-	 */
61
-	public $unitQualifier;
58
+ /**
59
+  * @var string self::QUAL_*
60
+  */
61
+ public $unitQualifier;
62 62
 	
63
-	/**
64
-	 * Create NumberOfUnitDetailsType
65
-	 * 
66
-	 * @param int $numberOfUnit
67
-	 * @param string $qualifier One of the constants self::QUAL_*
68
-	 */
69
-	public function __construct($numberOfUnit = null, $qualifier = self::QUAL_DAY)
70
-	{
71
-		$this->numberOfUnit = $numberOfUnit;
72
-		$this->unitQualifier = $qualifier;
73
-	}
63
+ /**
64
+  * Create NumberOfUnitDetailsType
65
+  * 
66
+  * @param int $numberOfUnit
67
+  * @param string $qualifier One of the constants self::QUAL_*
68
+  */
69
+ public function __construct($numberOfUnit = null, $qualifier = self::QUAL_DAY)
70
+ {
71
+  $this->numberOfUnit = $numberOfUnit;
72
+  $this->unitQualifier = $qualifier;
73
+ }
74 74
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/PriceXplorer/TravelDates.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -30,29 +30,29 @@
 block discarded – undo
30 30
  */
31 31
 class TravelDates
32 32
 {
33
-	/**
34
-	 * @var DateAndTimeDetails[]
35
-	 */
36
-	public $dateAndTimeDetails = [];
33
+ /**
34
+  * @var DateAndTimeDetails[]
35
+  */
36
+ public $dateAndTimeDetails = [];
37 37
 	
38
-	/**
39
-	 * @param \DateTime|null $earliestDepartureDate
40
-	 * @param \DateTime|null $latestDepartureDate
41
-	 */
42
-	public function __construct($earliestDepartureDate = null, $latestDepartureDate = null)
43
-	{
44
-		if ($earliestDepartureDate instanceof \DateTime) {
45
-			$this->dateAndTimeDetails[] = new DateAndTimeDetails(
46
-				DateAndTimeDetails::QUAL_STARTDATE,
47
-				$earliestDepartureDate
48
-			);
49
-		}
38
+ /**
39
+  * @param \DateTime|null $earliestDepartureDate
40
+  * @param \DateTime|null $latestDepartureDate
41
+  */
42
+ public function __construct($earliestDepartureDate = null, $latestDepartureDate = null)
43
+ {
44
+  if ($earliestDepartureDate instanceof \DateTime) {
45
+   $this->dateAndTimeDetails[] = new DateAndTimeDetails(
46
+    DateAndTimeDetails::QUAL_STARTDATE,
47
+    $earliestDepartureDate
48
+   );
49
+  }
50 50
 		
51
-		if ($latestDepartureDate instanceof \DateTime) {
52
-			$this->dateAndTimeDetails[] = new DateAndTimeDetails(
53
-					DateAndTimeDetails::QUAL_ENDDATE,
54
-					$latestDepartureDate
55
-			);
56
-		}
57
-	}
51
+  if ($latestDepartureDate instanceof \DateTime) {
52
+   $this->dateAndTimeDetails[] = new DateAndTimeDetails(
53
+     DateAndTimeDetails::QUAL_ENDDATE,
54
+     $latestDepartureDate
55
+   );
56
+  }
57
+ }
58 58
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/PriceXplorer/DateAndTimeDetails.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -30,43 +30,43 @@
 block discarded – undo
30 30
  */
31 31
 class DateAndTimeDetails
32 32
 {
33
-	const QUAL_DATEOFDEP = "D";
34
-	const QUAL_ENDDATE = "E";
35
-	const QUAL_RETURNDATE = "R";
36
-	const QUAL_STARTDATE = "S";
33
+ const QUAL_DATEOFDEP = "D";
34
+ const QUAL_ENDDATE = "E";
35
+ const QUAL_RETURNDATE = "R";
36
+ const QUAL_STARTDATE = "S";
37 37
 	
38
-	/**
39
-	 * @var string self::QUAL_*
40
-	 */
41
-	public $qualifier;
38
+ /**
39
+  * @var string self::QUAL_*
40
+  */
41
+ public $qualifier;
42 42
 	
43
-	/**
44
-	 * @var string Format: ddmmyy
45
-	 */
46
-	public $date;
43
+ /**
44
+  * @var string Format: ddmmyy
45
+  */
46
+ public $date;
47 47
 	
48
-	/**
49
-	 * @var string
50
-	 */
51
-	public $time;
48
+ /**
49
+  * @var string
50
+  */
51
+ public $time;
52 52
 	
53
-	/**
54
-	 * @var string
55
-	 */
56
-	public $otherQualifier;
53
+ /**
54
+  * @var string
55
+  */
56
+ public $otherQualifier;
57 57
 	
58
-	/**
59
-	 * @var string
60
-	 */
61
-	public $otherTime;
58
+ /**
59
+  * @var string
60
+  */
61
+ public $otherTime;
62 62
 
63
-	/**
64
-	 * @param string $qualifier self::QUAL_*
65
-	 * @param \DateTime $date
66
-	 */
67
-	public function __construct($qualifier, $date)
68
-	{
69
-		$this->qualifier = $qualifier;
70
-		$this->date = $date->format('dmy');
71
-	}
63
+ /**
64
+  * @param string $qualifier self::QUAL_*
65
+  * @param \DateTime $date
66
+  */
67
+ public function __construct($qualifier, $date)
68
+ {
69
+  $this->qualifier = $qualifier;
70
+  $this->date = $date->format('dmy');
71
+ }
72 72
 }
Please login to merge, or discard this patch.
src/Amadeus/Client/Struct/PriceXplorer/QuantityDetailsType.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -30,49 +30,49 @@
 block discarded – undo
30 30
  */
31 31
 class QuantityDetailsType
32 32
 {
33
-	/**
34
-	 * https://webservices.amadeus.com/extranet/structures/viewMessageStructure.do?id=2338&serviceVersionId=2304&isQuery=true#
35
-	 * PriceXplorer_ExtremeSearch/itineraryGrp/quantityInfo/quantityDetails/unit
36
-	 * UNITS: 
37
-	 * DAY 	Day
38
-	 * MTH 	Month
39
-	 * WK 	Week
40
-	 */
41
-	const UNIT_DAY = "DAY";
33
+ /**
34
+  * https://webservices.amadeus.com/extranet/structures/viewMessageStructure.do?id=2338&serviceVersionId=2304&isQuery=true#
35
+  * PriceXplorer_ExtremeSearch/itineraryGrp/quantityInfo/quantityDetails/unit
36
+  * UNITS: 
37
+  * DAY 	Day
38
+  * MTH 	Month
39
+  * WK 	Week
40
+  */
41
+ const UNIT_DAY = "DAY";
42 42
 	
43
-	const UNIT_WEEK = "WK";
43
+ const UNIT_WEEK = "WK";
44 44
 	
45
-	const UNIT_MONTH = "MTH";
45
+ const UNIT_MONTH = "MTH";
46 46
 	
47
-	/**
48
-	 * https://webservices.amadeus.com/extranet/structures/viewMessageStructure.do?id=2338&serviceVersionId=2304&isQuery=true#
49
-	 * PriceXplorer_ExtremeSearch/itineraryGrp/quantityInfo/quantityDetails/qualifier
50
-	 * @var string
51
-	 */
52
-	const QUAL_PLUS = "P";
47
+ /**
48
+  * https://webservices.amadeus.com/extranet/structures/viewMessageStructure.do?id=2338&serviceVersionId=2304&isQuery=true#
49
+  * PriceXplorer_ExtremeSearch/itineraryGrp/quantityInfo/quantityDetails/qualifier
50
+  * @var string
51
+  */
52
+ const QUAL_PLUS = "P";
53 53
 	
54
-	/**
55
-	 * @var string
56
-	 */
57
-	public $qualifier;
58
-	/**
59
-	 * @var int
60
-	 */
61
-	public $value;
62
-	/**
63
-	 * @var string
64
-	 */
65
-	public $unit;
54
+ /**
55
+  * @var string
56
+  */
57
+ public $qualifier;
58
+ /**
59
+  * @var int
60
+  */
61
+ public $value;
62
+ /**
63
+  * @var string
64
+  */
65
+ public $unit;
66 66
 	
67
-	/**
68
-	 * @param int $value
69
-	 * @param string $unit
70
-	 * @param string $qualifier
71
-	 */
72
-	public function __construct($value, $unit = self::UNIT_DAY, $qualifier = self::QUAL_PLUS)
73
-	{
74
-		$this->value = $value;
75
-		$this->unit = $unit;
76
-		$this->qualifier = $qualifier;
77
-	}
67
+ /**
68
+  * @param int $value
69
+  * @param string $unit
70
+  * @param string $qualifier
71
+  */
72
+ public function __construct($value, $unit = self::UNIT_DAY, $qualifier = self::QUAL_PLUS)
73
+ {
74
+  $this->value = $value;
75
+  $this->unit = $unit;
76
+  $this->qualifier = $qualifier;
77
+ }
78 78
 }
Please login to merge, or discard this patch.