Skip to content

Commit

Permalink
Add Seatmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Willem Staels committed Sep 20, 2017
1 parent 22f1019 commit ab1df69
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/EventSquare.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use EventSquare\Connection;
use EventSquare\Store;
use EventSquare\Pocket;
use EventSquare\Seatmap;

class EventSquare
{
Expand Down Expand Up @@ -79,6 +80,14 @@ public function pockets($uid)
return new Pocket($this->connection,$uid);
}

/**
* Seatmaps
*/
public function seatmaps($uid)
{
return new Seatmap($this->connection,$uid);
}

/**
* Check Depencies for library
* @return [type] [description]
Expand Down
31 changes: 31 additions & 0 deletions src/Seatmap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace EventSquare;

use EventSquare\EventSquareException;
use EventSquare\Connection;

class Seatmap {

private $connection;
private $data;

public function __construct(Connection $connection, $uid) {
$this->connection = $connection;
$this->uid = $uid;
}

public function details() {
return $this->connection->send('seatmap/'.$this->uid,'seatmap',$this);
}

public function append($data) {
$this->data = $data;
return $this;
}

public function data() {
return $this->data;
}

}

0 comments on commit ab1df69

Please sign in to comment.