MaketRandevu/engine/Api/V1/Request.php

35 lines
926 B
PHP
Raw Permalink Normal View History

<?php
/* ----------------------------------------------------------------------------
* Easy!Appointments - Open Source Web Scheduler
*
* @package EasyAppointments
* @author A.Tselegidis <alextselegidis@gmail.com>
* @copyright Copyright (c) 2013 - 2020, Alex Tselegidis
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
* @link http://easyappointments.org
* @since v1.2.0
* ---------------------------------------------------------------------------- */
namespace EA\Engine\Api\V1;
/**
* Request Class
*
* This class handles the common request handling before the data are manipulated and
* returned back with the Response class.
*
* @deprecated
*/
class Request {
/**
* Get request body as an associative array.
*
* @return array
*/
public function get_body()
{
return json_decode(file_get_contents('php://input'), TRUE);
}
}