2017-09-15 14:36:37 +03:00
|
|
|
<?php
|
2016-07-10 12:12:16 +03:00
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* Easy!Appointments - Open Source Web Scheduler
|
|
|
|
*
|
|
|
|
* @package EasyAppointments
|
|
|
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
2017-01-31 09:35:34 +03:00
|
|
|
* @copyright Copyright (c) 2013 - 2017, Alex Tselegidis
|
2016-07-10 12:12:16 +03:00
|
|
|
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
|
|
* @link http://easyappointments.org
|
|
|
|
* @since v1.2.0
|
|
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
|
2017-09-15 14:36:37 +03:00
|
|
|
namespace EA\Engine\Api\V1;
|
2016-07-10 12:12:16 +03:00
|
|
|
|
|
|
|
/**
|
2017-09-15 14:36:37 +03:00
|
|
|
* Request Class
|
2016-07-10 12:12:16 +03:00
|
|
|
*
|
2017-09-15 14:36:37 +03:00
|
|
|
* This class handles the common request handling before the data are manipulated and
|
|
|
|
* returned back with the Response class.
|
2016-07-10 12:12:16 +03:00
|
|
|
*/
|
|
|
|
class Request {
|
|
|
|
/**
|
2017-09-15 14:36:37 +03:00
|
|
|
* Get request body as an associative array.
|
|
|
|
*
|
2016-07-10 12:12:16 +03:00
|
|
|
* @return array
|
|
|
|
*/
|
2017-09-15 14:36:37 +03:00
|
|
|
public function getBody()
|
|
|
|
{
|
|
|
|
return json_decode(file_get_contents('php://input'), TRUE);
|
2016-07-10 12:12:16 +03:00
|
|
|
}
|
|
|
|
}
|