Перевод на DDD
This commit is contained in:
13
app/Domain/ReportDuty/Models/ValueObjects/Id.php
Normal file
13
app/Domain/ReportDuty/Models/ValueObjects/Id.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ReportDuty\Models\ValueObjects;
|
||||
|
||||
class Id
|
||||
{
|
||||
const FIELD_NAME = 'id';
|
||||
|
||||
public function getField(): string
|
||||
{
|
||||
return self::FIELD_NAME;
|
||||
}
|
||||
}
|
||||
13
app/Domain/ReportDuty/Models/ValueObjects/PeriodEnd.php
Normal file
13
app/Domain/ReportDuty/Models/ValueObjects/PeriodEnd.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ReportDuty\Models\ValueObjects;
|
||||
|
||||
class PeriodEnd
|
||||
{
|
||||
const FIELD_NAME = 'period_end';
|
||||
|
||||
public function getField(): string
|
||||
{
|
||||
return self::FIELD_NAME;
|
||||
}
|
||||
}
|
||||
13
app/Domain/ReportDuty/Models/ValueObjects/PeriodStart.php
Normal file
13
app/Domain/ReportDuty/Models/ValueObjects/PeriodStart.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ReportDuty\Models\ValueObjects;
|
||||
|
||||
class PeriodStart
|
||||
{
|
||||
const FIELD_NAME = 'period_start';
|
||||
|
||||
public function getField(): string
|
||||
{
|
||||
return self::FIELD_NAME;
|
||||
}
|
||||
}
|
||||
13
app/Domain/ReportDuty/Models/ValueObjects/PeriodType.php
Normal file
13
app/Domain/ReportDuty/Models/ValueObjects/PeriodType.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ReportDuty\Models\ValueObjects;
|
||||
|
||||
class PeriodType
|
||||
{
|
||||
const FIELD_NAME = 'period_type';
|
||||
|
||||
public function getField(): string
|
||||
{
|
||||
return self::FIELD_NAME;
|
||||
}
|
||||
}
|
||||
13
app/Domain/ReportDuty/Models/ValueObjects/ReportDate.php
Normal file
13
app/Domain/ReportDuty/Models/ValueObjects/ReportDate.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ReportDuty\Models\ValueObjects;
|
||||
|
||||
class ReportDate
|
||||
{
|
||||
const FIELD_NAME = 'report_date';
|
||||
|
||||
public function getField(): string
|
||||
{
|
||||
return self::FIELD_NAME;
|
||||
}
|
||||
}
|
||||
13
app/Domain/ReportDuty/Models/ValueObjects/ReportMonth.php
Normal file
13
app/Domain/ReportDuty/Models/ValueObjects/ReportMonth.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ReportDuty\Models\ValueObjects;
|
||||
|
||||
class ReportMonth
|
||||
{
|
||||
const FIELD_NAME = 'report_month';
|
||||
|
||||
public function getField(): string
|
||||
{
|
||||
return self::FIELD_NAME;
|
||||
}
|
||||
}
|
||||
13
app/Domain/ReportDuty/Models/ValueObjects/ReportYear.php
Normal file
13
app/Domain/ReportDuty/Models/ValueObjects/ReportYear.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ReportDuty\Models\ValueObjects;
|
||||
|
||||
class ReportYear
|
||||
{
|
||||
const FIELD_NAME = 'report_year';
|
||||
|
||||
public function getField(): string
|
||||
{
|
||||
return self::FIELD_NAME;
|
||||
}
|
||||
}
|
||||
13
app/Domain/ReportDuty/Models/ValueObjects/RfDepartmentId.php
Normal file
13
app/Domain/ReportDuty/Models/ValueObjects/RfDepartmentId.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ReportDuty\Models\ValueObjects;
|
||||
|
||||
class RfDepartmentId
|
||||
{
|
||||
const FIELD_NAME = 'rf_department_id';
|
||||
|
||||
public function getField(): string
|
||||
{
|
||||
return self::FIELD_NAME;
|
||||
}
|
||||
}
|
||||
13
app/Domain/ReportDuty/Models/ValueObjects/RfLpudoctorId.php
Normal file
13
app/Domain/ReportDuty/Models/ValueObjects/RfLpudoctorId.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ReportDuty\Models\ValueObjects;
|
||||
|
||||
class RfLpudoctorId
|
||||
{
|
||||
const FIELD_NAME = 'rf_lpudoctor_id';
|
||||
|
||||
public function getField(): string
|
||||
{
|
||||
return self::FIELD_NAME;
|
||||
}
|
||||
}
|
||||
13
app/Domain/ReportDuty/Models/ValueObjects/RfUserId.php
Normal file
13
app/Domain/ReportDuty/Models/ValueObjects/RfUserId.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ReportDuty\Models\ValueObjects;
|
||||
|
||||
class RfUserId
|
||||
{
|
||||
const FIELD_NAME = 'rf_user_id';
|
||||
|
||||
public function getField(): string
|
||||
{
|
||||
return self::FIELD_NAME;
|
||||
}
|
||||
}
|
||||
13
app/Domain/ReportDuty/Models/ValueObjects/SentAt.php
Normal file
13
app/Domain/ReportDuty/Models/ValueObjects/SentAt.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ReportDuty\Models\ValueObjects;
|
||||
|
||||
class SentAt
|
||||
{
|
||||
const FIELD_NAME = 'sent_at';
|
||||
|
||||
public function getField(): string
|
||||
{
|
||||
return self::FIELD_NAME;
|
||||
}
|
||||
}
|
||||
13
app/Domain/ReportDuty/Models/ValueObjects/StatusId.php
Normal file
13
app/Domain/ReportDuty/Models/ValueObjects/StatusId.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ReportDuty\Models\ValueObjects;
|
||||
|
||||
class StatusId
|
||||
{
|
||||
const FIELD_NAME = 'status_id';
|
||||
|
||||
public function getField(): string
|
||||
{
|
||||
return self::FIELD_NAME;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user