Skip to content

Instantly share code, notes, and snippets.

@aligurbuz
Created December 7, 2018 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aligurbuz/57a8ff76d27a081c417b59c876f3c853 to your computer and use it in GitHub Desktop.
Save aligurbuz/57a8ff76d27a081c417b59c876f3c853 to your computer and use it in GitHub Desktop.
<?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