mirror of
https://github.com/Karaka-Management/oms-ProjectManagement.git
synced 2026-01-24 05:28:41 +00:00
phpcbf
This commit is contained in:
parent
4d57671a45
commit
4f6152f93e
|
|
@ -19,7 +19,6 @@ use phpOMS\Module\UpdateAbstract;
|
|||
use phpOMS\System\File\Directory;
|
||||
use phpOMS\Module\InfoManager;
|
||||
|
||||
|
||||
/**
|
||||
* Navigation class.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -26,9 +26,9 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
*/
|
||||
abstract class ProgressType extends Enum
|
||||
{
|
||||
/* public */ const MANUAL = 0;
|
||||
/* public */ const LINEAR = 1;
|
||||
/* public */ const MANUAL = 0;
|
||||
/* public */ const LINEAR = 1;
|
||||
/* public */ const EXPONENTIAL = 2;
|
||||
/* public */ const LOG = 3;
|
||||
/* public */ const TASKS = 4;
|
||||
/* public */ const LOG = 3;
|
||||
/* public */ const TASKS = 4;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
declare(strict_types = 1);
|
||||
|
||||
namespace Modules\ProjectManagement\Models;
|
||||
|
||||
use Modules\Calendar\Models\Calendar;
|
||||
use Modules\Tasks\Models\Task;
|
||||
use phpOMS\Localization\Money;
|
||||
|
|
@ -72,14 +73,14 @@ class Project
|
|||
public function __construct(string $name = '')
|
||||
{
|
||||
$this->start = new \DateTime('now');
|
||||
$this->end = new \DateTime('now');
|
||||
$this->end = new \DateTime('now');
|
||||
$this->end->modify('+1 month');
|
||||
$this->createdAt = new \DateTime('now');
|
||||
|
||||
$this->calendar = new Calendar();
|
||||
|
||||
$this->costs = new Money();
|
||||
$this->budget = new Money();
|
||||
$this->costs = new Money();
|
||||
$this->budget = new Money();
|
||||
$this->earnings = new Money();
|
||||
|
||||
$this->setName($name);
|
||||
|
|
@ -260,4 +261,4 @@ class Project
|
|||
{
|
||||
$this->createdBy = $createdBy;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,5 +112,4 @@ class ProjectMapper extends DataMapperAbstract
|
|||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'projectmanagement_project_id';
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user