ExtendedApiEndpoint.php
657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Created by PhpStorm.
* User: Alex Savenko
* Date: 14.02.2017
* Time: 16:15
*/
namespace App\Mvc;
use PhalconRest\Api\ApiEndpoint;
class ExtendedApiEndpoint extends ApiEndpoint {
protected $exampleRequest;
/**
* @param string $exampleRequest Example of the request of the endpoint
*
* @return $this
*/
public function exampleRequest($exampleRequest)
{
$this->exampleRequest = $exampleRequest;
return $this;
}
/**
* @return string Example of the request of the endpoint
*/
public function getExampleRequest()
{
return $this->exampleRequest;
}
}