-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zone can be passed in to best available calls (#123)
* Introduced BestAvailableParams * Zone can be passed in * Fixed test
- Loading branch information
Showing
15 changed files
with
138 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ class Chart | |
*/ | ||
public $events; | ||
/** | ||
* @var boolean | ||
* @var bool | ||
*/ | ||
public $archived; | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
|
||
namespace Seatsio\Events; | ||
|
||
class BestAvailableParams | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
public $number; | ||
|
||
/** | ||
* @var string[] | ||
*/ | ||
public $categories; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $zone; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
public $extraData; | ||
|
||
/** | ||
* @var string[] | ||
*/ | ||
public $ticketTypes; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
public $tryToPreventOrphanSeats; | ||
|
||
public function setNumber(int $number): self | ||
{ | ||
$this->number = $number; | ||
return $this; | ||
} | ||
|
||
public function setCategories(array $categories): self | ||
{ | ||
$this->categories = $categories; | ||
return $this; | ||
} | ||
|
||
public function setZone(string $zone): self | ||
{ | ||
$this->zone = $zone; | ||
return $this; | ||
} | ||
|
||
public function setExtraData(array $extraData): self | ||
{ | ||
$this->extraData = $extraData; | ||
return $this; | ||
} | ||
|
||
public function setTicketTypes(array $ticketTypes): self | ||
{ | ||
$this->ticketTypes = $ticketTypes; | ||
return $this; | ||
} | ||
|
||
public function setTryToPreventOrphanSeats(bool $tryToPreventOrphanSeats): self | ||
{ | ||
$this->tryToPreventOrphanSeats = $tryToPreventOrphanSeats; | ||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ class Event | |
public $date; | ||
|
||
/** | ||
* @var boolean | ||
* @var bool | ||
*/ | ||
public $supportsBestAvailable; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
class ForSaleConfig | ||
{ | ||
/** | ||
* @var boolean | ||
* @var bool | ||
*/ | ||
public $forSale; | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ class Event | |
public $key; | ||
|
||
/** | ||
* @var boolean | ||
* @var bool | ||
*/ | ||
public $deleted; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.