<?php

/**
 * This class has been auto-generated by the Doctrine ORM Framework
 */
class Users extends BaseUsers {
    const USER_TYPE_ADMIN = "Admin";
    const USER_TYPE_EMPLOYEE = "Employee";
    const USER_TYPE_SUPERVISOR = "Supervisor";

    public function getFirstName() {

        if ($this->getEmpNumber() == '') {
            $firstName = $this->_data['first_name'];
            if (empty($firstName)) {
                $firstName = $this->getUserName();
            }
        } else {
            $firstName = $this->getEmployee()->getFirstName();
        }

        return $firstName;

    }
}