Created
December 7, 2018 05:50
-
-
Save aligurbuz/57a8ff76d27a081c417b59c876f3c853 to your computer and use it in GitHub Desktop.
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
<?php | |
namespace App\Mobi\Api\Main\V1\Optional\Source\Request\User; | |
use App\Mobi\Api\Main\V1\Optional\Source\Request\Request; | |
use App\Mobi\Api\Main\V1\Optional\Source\Request\RequestProvider; | |
use App\Mobi\Api\Main\V1\Optional\Source\Request\RequestGenerator; | |
class UserRequest extends RequestProvider | |
{ | |
//request and request generator | |
use Request,UserRequestGenerator,RequestGenerator; | |
/** | |
* The values expected by the server. | |
* @var array | |
*/ | |
protected $expected=[]; | |
/** | |
* mandatory http method. | |
* @var array | |
*/ | |
protected $http=[]; | |
/** | |
* @var $date | |
*/ | |
protected $date; | |
/** | |
* @return false|int | |
*/ | |
public function date() | |
{ | |
return strtotime($this->date); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment