Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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