You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
917 B
44 lines
917 B
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
class ProhibitedPassageService extends BaseService
|
|
{
|
|
protected string $menuTitle = 'prohibited_passage';
|
|
|
|
public array $typeArr = [
|
|
1 => 'entrance',
|
|
2 => 'export'
|
|
];
|
|
|
|
public array $remarkArr = [
|
|
1 => 'remark1',
|
|
2 => 'remark2',
|
|
3 => 'remark3'
|
|
];
|
|
|
|
/**
|
|
* @return array|string[]
|
|
*/
|
|
public function getType(): array
|
|
{
|
|
$typeArr = $this->typeArr;
|
|
foreach ($typeArr as $key => $value) {
|
|
$typeArr[$key] = __service('channel_management.' . $value);
|
|
}
|
|
return $typeArr;
|
|
}
|
|
|
|
/**
|
|
* @return array|string[]
|
|
*/
|
|
public function getRemark(): array
|
|
{
|
|
$typeArr = $this->remarkArr;
|
|
foreach ($typeArr as $key => $value) {
|
|
$typeArr[$key] = __service($this->menuTitle . '.' . $value);
|
|
}
|
|
return $typeArr;
|
|
}
|
|
|
|
}
|
|
|