Doc comment missing for class method
getOrderPharm
66 return $this->quantity;
67 }
68
69 public function getOrderPharm($id) 70 {
71 $this->getOrder($id);
72 return $this->pharmacyName;
Doc comment missing for class method
getMedQuantiy
60 return $this->medId;
61 }
62
63 public function getMedQuantiy($id) 64 {
65 $this->getOrder($id);
66 return $this->quantity;
Doc comment missing for class method
getMedId
54 $db->close();
55 }
56
57 public function getMedId($id) 58 {
59 $this->getOrder($id);
60 return $this->medId;
Doc comment missing for class method
getSupOrders
43 $db->close();
44 }
45
46 public function getSupOrders($name) 47 {
48 $db = (new Database())->getConnection();
49 $sql = "SELECT id from pharmacyorder WHERE pharmacyorder.status = '1' && pharmacyorder.supName = '$name'";
Doc comment missing for class method
ViewAcceptedOrders
14class SupplierOrdersController extends Controller
15{
16
17 public function ViewAcceptedOrders()18 {
19 $order = new PharmacyOrderModel;
20 $med = new MedicineModel;
Doc comment missing for class method
Orders
103 }
104 }
105
106 public function Orders(Request $request)107 {
108 if ($_SESSION['userType'] == 'supplier') {
109
Description
Documentation comments are helpful in understanding what that part of the code is responsible for. It is always a good idea to add documentation to your code to improve the code readability and maintainability. In addition to that, it becomes helpful when you revisit the code after a long time. Here, the function/class method is missing the doc comment and it is recommended to add it for the reasons discussed above.