1 | <?php |
||
18 | class RuleController extends Controller { |
||
19 | |||
20 | /** @var RuleMapper */ |
||
21 | private $ruleMapper; |
||
22 | |||
23 | public function __construct($appName, IRequest $request, RuleMapper $ruleMapper) { |
||
27 | |||
28 | /** |
||
29 | * Returns all rules |
||
30 | * @return JSONResponse |
||
31 | */ |
||
32 | public function listAll() { |
||
36 | |||
37 | /** |
||
38 | * Removes all rules |
||
39 | * @return JSONResponse |
||
40 | */ |
||
41 | public function clear() { |
||
45 | |||
46 | /** |
||
47 | * Resets a table to initial state |
||
48 | * @return JSONResponse |
||
49 | */ |
||
50 | public function reset() { |
||
55 | |||
56 | /** |
||
57 | * Adds/Updates a rule |
||
58 | * @param int $id |
||
59 | * @param int $statusType |
||
60 | * @param string $match |
||
61 | * @param string $description |
||
62 | * @param int $status |
||
63 | * @return JSONResponse |
||
64 | */ |
||
65 | public function save($id, $statusType, $match, $description, $status) { |
||
90 | |||
91 | /** |
||
92 | * Deletes a rule |
||
93 | * @param int $id |
||
94 | * @return JSONResponse |
||
95 | */ |
||
96 | public function delete($id) { |
||
105 | } |
||
106 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.