oms-HumanResourceManagement/Models/Employee.php
2019-07-08 19:51:27 +02:00

117 lines
1.9 KiB
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package Modules\HumanResourceManagement\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace Modules\HumanResourceManagement\Models;
use Modules\Admin\Models\Account;
/**
* Employee class.
*
* @package Modules\HumanResourceManagement\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class Employee
{
/**
* Employee ID.
*
* @var int
* @since 1.0.0
*/
private $id = 0;
private $account = null;
private $unit = null;
private $department = null;
private $position = null;
private $isActive = true;
private $history = [];
private $status = [];
public function setAccount(Account $account) : void
{
$this->account = $account;
}
public function getAccount() : Account
{
return $this->account;
}
public function setActivity(bool $active) : void
{
$this->isActive = $active;
}
public function isActive() : bool
{
return $this->isActive;
}
public function setUnit($unit) : void
{
$this->unit = $unit;
}
public function getUnit()
{
return $this->unit;
}
public function setDepartment($department) : void
{
$this->department = $department;
}
public function getDepartment()
{
return $this->department;
}
public function setPosition($position) : void
{
$this->position = $position;
}
public function getPosition()
{
return $this->position;
}
public function getId() : int
{
return $this->id;
}
public function getHistory() : array
{
return [];
}
public function getNewestHistory() : void
{
}
}