Setup script bootstrapped with new theme selector - Take 2 (#2139)
[openemr.git] / rest_controllers / ProductRegistrationRestController.php
blob91d392f88703a8a5a3224b71c7c6e33d688cbc21
1 <?php
2 /**
3 * ProductRegistrationRestController
5 * @package OpenEMR
6 * @link http://www.open-emr.org
7 * @author Matthew Vita <matthewvita48@gmail.com>
8 * @copyright Copyright (c) 2018 Matthew Vita <matthewvita48@gmail.com>
9 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 namespace OpenEMR\RestControllers;
15 use OpenEMR\Services\ProductRegistrationService;
16 use OpenEMR\RestControllers\RestControllerHelper;
18 class ProductRegistrationRestController
20 private $productRegistrationService;
22 public function __construct()
24 $this->productRegistrationService = new ProductRegistrationService();
27 public function getOne()
29 $serviceResult = $this->productRegistrationService->getProductStatus()->getStatusAsString();
30 return RestControllerHelper::responseHandler($serviceResult, array("status" => $serviceResult), 200);