-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added response entities on all entity requests
added response entities on all entity requests to allow the ability to parse headers
- Loading branch information
Showing
19 changed files
with
326 additions
and
67 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
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,66 @@ | ||
<?php | ||
|
||
namespace Bookboon\Api\Client; | ||
|
||
use Bookboon\Api\Entity\EntityStore; | ||
|
||
class BookboonResponse | ||
{ | ||
/** | ||
* @var array | ||
*/ | ||
protected $returnArray; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
protected $headers; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
protected $entityStore; | ||
|
||
/** | ||
* BookboonResponse constructor. | ||
* @param $returnArray | ||
* @param $headers | ||
*/ | ||
public function __construct($returnArray, $headers) | ||
{ | ||
$this->returnArray = $returnArray; | ||
$this->headers = $headers; | ||
} | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getHeaders() | ||
{ | ||
return $this->headers; | ||
} | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getReturnArray() | ||
{ | ||
return $this->returnArray; | ||
} | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getEntityStore() | ||
{ | ||
return $this->entityStore; | ||
} | ||
|
||
/** | ||
* @param $entityStore | ||
*/ | ||
public function setEntityStore(EntityStore $entityStore) | ||
{ | ||
$this->entityStore = $entityStore; | ||
} | ||
} |
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
Oops, something went wrong.