mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-02-15 01:38:39 +00:00
phpcbf
This commit is contained in:
parent
53a272973b
commit
ef683c420c
|
|
@ -19,7 +19,6 @@ use phpOMS\Module\UpdateAbstract;
|
||||||
use phpOMS\System\File\Directory;
|
use phpOMS\System\File\Directory;
|
||||||
use phpOMS\Module\InfoManager;
|
use phpOMS\Module\InfoManager;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Navigation class.
|
* Navigation class.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
declare(strict_types = 1);
|
declare(strict_types = 1);
|
||||||
|
|
||||||
namespace Modules\Marketing\Models;
|
namespace Modules\Marketing\Models;
|
||||||
|
|
||||||
use Modules\Calendar\Models\Calendar;
|
use Modules\Calendar\Models\Calendar;
|
||||||
use Modules\Tasks\Models\Task;
|
use Modules\Tasks\Models\Task;
|
||||||
use phpOMS\Localization\Money;
|
use phpOMS\Localization\Money;
|
||||||
|
|
@ -68,14 +69,14 @@ class Promotion
|
||||||
public function __construct(string $name = '')
|
public function __construct(string $name = '')
|
||||||
{
|
{
|
||||||
$this->start = new \DateTime('now');
|
$this->start = new \DateTime('now');
|
||||||
$this->end = new \DateTime('now');
|
$this->end = new \DateTime('now');
|
||||||
$this->end->modify('+1 month');
|
$this->end->modify('+1 month');
|
||||||
$this->createdAt = new \DateTime('now');
|
$this->createdAt = new \DateTime('now');
|
||||||
|
|
||||||
$this->calendar = new Calendar();
|
$this->calendar = new Calendar();
|
||||||
|
|
||||||
$this->costs = new Money();
|
$this->costs = new Money();
|
||||||
$this->budget = new Money();
|
$this->budget = new Money();
|
||||||
$this->earnings = new Money();
|
$this->earnings = new Money();
|
||||||
|
|
||||||
$this->setName($name);
|
$this->setName($name);
|
||||||
|
|
@ -236,4 +237,4 @@ class Promotion
|
||||||
{
|
{
|
||||||
$this->createdBy = $createdBy;
|
$this->createdBy = $createdBy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -110,5 +110,4 @@ class PromotionMapper extends DataMapperAbstract
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $primaryField = 'marketing_promotion_id';
|
protected static $primaryField = 'marketing_promotion_id';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user