[mod] Select of employee times made multi line

This commit is contained in:
Jose Pabl Domingo Aramburo Sanchez 2018-08-06 02:17:13 -06:00
parent f441696b96
commit 0deb89ed53

View File

@ -5,6 +5,7 @@ class EmployeeApplication{
private $pdo; private $pdo;
private $cryptographyService; private $cryptographyService;
private $asserts; private $asserts;
private $settings;
function __construct($employeeSettings, $mysql, $cryptographyService, $asserts){ function __construct($employeeSettings, $mysql, $cryptographyService, $asserts){
$this->settings = $employeeSettings; $this->settings = $employeeSettings;
@ -20,7 +21,12 @@ class EmployeeApplication{
* @return array * @return array
*/ */
function listEmployeeTypes(){ function listEmployeeTypes(){
$stmt = $this->pdo->prepare("SELECT id, name FROM employeeType WHERE status = 'ACTIVE'"); $stmt = $this->pdo->prepare("SELECT
id, name
FROM
employeeType
WHERE
status = 'ACTIVE'");
$stmt->execute(); $stmt->execute();
$results = $stmt->fetchAll(); $results = $stmt->fetchAll();