mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-16 18:28:41 +00:00
62 lines
1.1 KiB
PHP
62 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.0
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
* @copyright 2013 Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/
|
|
namespace Modules\Organization\Models;
|
|
|
|
class Unit
|
|
{
|
|
private $id = 0;
|
|
|
|
private $name = '';
|
|
|
|
private $parent = 0;
|
|
|
|
private $description = '';
|
|
|
|
public function getId() : int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getName() : string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setName(string $name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getParent() : int
|
|
{
|
|
return $this->parent;
|
|
}
|
|
|
|
public function setParent(int $parent) {
|
|
$this->parent = $parent;
|
|
}
|
|
|
|
public function getDescription() : string
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
public function setDescription(string $desc)
|
|
{
|
|
$this->description = $desc;
|
|
}
|
|
}
|