Skip to content

Commit

Permalink
Expose variableOccupancy, minOccupancy, and maxOccupancy (#91)
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Chaloner <steve@seats.io>
  • Loading branch information
schaloner and Steve Chaloner authored Aug 23, 2023
1 parent fa11b94 commit c6b886c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Events/EventObjectInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,16 @@ class EventObjectInfo
* @var int
*/
public $numSeats;

/**
* @var boolean
*/
public $variableOccupancy;
/**
* @var int
*/
public $minOccupancy;
/**
* @var int
*/
public $maxOccupancy;
}
5 changes: 5 additions & 0 deletions tests/Reports/EventReportsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public function testReportItemProperties()
self::assertEquals("A-2", $reportItem->rightNeighbour);
self::assertEquals("channel1", $reportItem->channel);
self::assertNotNull($reportItem->distanceToFocalPoint);

$gaItem = $report["GA1"][0];
self::assertFalse($gaItem->variableOccupancy);
self::assertEquals(1, $gaItem->minOccupancy);
self::assertNull($gaItem->maxOccupancy);
}

public function testHoldToken()
Expand Down

0 comments on commit c6b886c

Please sign in to comment.