forked from APIJet/APIJet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseController.php
More file actions
50 lines (40 loc) · 900 Bytes
/
BaseController.php
File metadata and controls
50 lines (40 loc) · 900 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
38
39
40
41
42
43
44
45
46
47
48
49
<?php
namespace APIJet;
abstract class BaseController
{
/**
* @var APIJet
*/
private $app;
public function __construct($app)
{
$this->app = $app;
}
/**
* @return APIJet
*/
public function getApp()
{
return $this->app;
}
public function setResponseCode($code)
{
$this->app->getResponseContainer()->setCode($code);
}
public function getResponseCode()
{
return $this->app->getResponseContainer()->getCode();
}
public function getRequestLimit()
{
return $this->app->getRequestContainer()->getLimit();
}
public function getRequestOffset()
{
return $this->app->getRequestContainer()->getOffset();
}
public function getInputData()
{
return $this->app->getRequestContainer()->getInputData();
}
}