-
Notifications
You must be signed in to change notification settings - Fork 27
/
ReadResponse.php
30 lines (25 loc) · 728 Bytes
/
ReadResponse.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
namespace Factual;
/**
* Represents the response from running a fetch request against Factual, such as
* a geolocation based query for specific places entities.
* This is a refactoring of the Factual Driver by Aaron: https://github.com/Factual/factual-java-driver
* @author Tyler
* @package Factual
* @license Apache 2.0
*/
class ReadResponse extends FactualResponse {
protected $entityType = null;
/*
* Results as array of PHP objects (experimental)
* @return array Array of objects
public function getObjects() {
if ($this->entityType) {
return parent :: asObjects($this->entityType);
} else {
throw new Exception("Method " . __METHOD__ . " called but no entity type set");
}
}
*/
}
?>