1 | <?php |
||
13 | class APIBusinessEntity extends BusinessEntity |
||
14 | { |
||
15 | const TYPE = 'api'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | * |
||
20 | * @ORM\Column(name="resource", type="string", length=255) |
||
21 | */ |
||
22 | protected $resource; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | * |
||
27 | * @ORM\Column(name="getMethod", type="text") |
||
28 | */ |
||
29 | protected $getMethod; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * |
||
34 | * @ORM\Column(name="listMethod", type="text") |
||
35 | */ |
||
36 | protected $listMethod; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | * |
||
41 | * @ORM\Column(name="pagerParameter", type="text") |
||
42 | */ |
||
43 | protected $pagerParameter; |
||
44 | |||
45 | /** |
||
46 | * @var APIEndpoint |
||
47 | * |
||
48 | * @ORM\ManyToOne(targetEntity="APIEndpoint") |
||
49 | * @ORM\JoinColumn(name="endpoint_id", referencedColumnName="id", onDelete="SET NULL")) |
||
50 | */ |
||
51 | protected $endpoint; |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getResource() |
||
60 | |||
61 | /** |
||
62 | * @param string $resource |
||
63 | */ |
||
64 | public function setResource($resource) |
||
68 | |||
69 | /** |
||
70 | * @return APIEndpoint |
||
71 | */ |
||
72 | public function getEndpoint() |
||
76 | |||
77 | /** |
||
78 | * @param APIEndpoint $endpoint |
||
79 | */ |
||
80 | public function setEndpoint($endpoint) |
||
84 | |||
85 | public function getType() |
||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getGetMethod() |
||
97 | |||
98 | /** |
||
99 | * @param string $getMethod |
||
100 | */ |
||
101 | public function setGetMethod($getMethod) |
||
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | public function getListMethod($page = null) |
||
119 | |||
120 | /** |
||
121 | * @param string $listMethod |
||
122 | */ |
||
123 | public function setListMethod($listMethod) |
||
127 | |||
128 | /** |
||
129 | * @return string |
||
130 | */ |
||
131 | public function getPagerParameter() |
||
135 | |||
136 | /** |
||
137 | * @param string $pagerParameter |
||
138 | */ |
||
139 | public function setPagerParameter($pagerParameter) |
||
143 | } |
||
144 |