Skip to content

Commit

Permalink
Test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Tibbe committed Sep 8, 2020
1 parent 1f0df2f commit 5cb4a24
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/php-club-dataservice.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,27 @@ public function getClub()

return $this->club;
}

/**
* Get the club data
*
* @return Club
*/
public function getMatch()
{
if($this->club) {
return $this->club;
}

$response = $this->request('clubgegevens');

$data = $response['gegevens'];
if (isset($response['bezoekadres'])) {
$data['bezoekadres'] = new Bezoekadres($this, $response['bezoekadres']);
}

$this->club = new Club($this, $data);

return $this->club;
}
}

0 comments on commit 5cb4a24

Please sign in to comment.