Skip to content

Commit fd2dc8a

Browse files
committed
add role info
1 parent 91d770e commit fd2dc8a

File tree

2 files changed

+187
-0
lines changed

2 files changed

+187
-0
lines changed

message_info/RoleDataProvider.php

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
<?php
2+
declare(strict_types=1);
3+
namespace MessageInfo;
4+
5+
/**
6+
* Auto generated data provider
7+
*/
8+
final class RoleDataProvider extends \Xervice\DataProvider\Business\Model\DataProvider\AbstractDataProvider implements \Xervice\DataProvider\Business\Model\DataProvider\DataProviderInterface
9+
{
10+
/** @var string */
11+
protected $doctor = 'doctor';
12+
13+
/** @var string */
14+
protected $testCenter = 'testCenter';
15+
16+
/** @var string */
17+
protected $labor = 'labor';
18+
19+
20+
/**
21+
* @return string
22+
*/
23+
public function getDoctor(): string
24+
{
25+
return $this->doctor;
26+
}
27+
28+
29+
/**
30+
* @param string $doctor
31+
* @return RoleDataProvider
32+
*/
33+
public function setDoctor(string $doctor = 'doctor')
34+
{
35+
$this->doctor = $doctor;
36+
37+
return $this;
38+
}
39+
40+
41+
/**
42+
* @return RoleDataProvider
43+
*/
44+
public function unsetDoctor()
45+
{
46+
$this->doctor = null;
47+
48+
return $this;
49+
}
50+
51+
52+
/**
53+
* @return bool
54+
*/
55+
public function hasDoctor()
56+
{
57+
return ($this->doctor !== null && $this->doctor !== []);
58+
}
59+
60+
61+
/**
62+
* @return string
63+
*/
64+
public function getTestCenter(): string
65+
{
66+
return $this->testCenter;
67+
}
68+
69+
70+
/**
71+
* @param string $testCenter
72+
* @return RoleDataProvider
73+
*/
74+
public function setTestCenter(string $testCenter = 'testCenter')
75+
{
76+
$this->testCenter = $testCenter;
77+
78+
return $this;
79+
}
80+
81+
82+
/**
83+
* @return RoleDataProvider
84+
*/
85+
public function unsetTestCenter()
86+
{
87+
$this->testCenter = null;
88+
89+
return $this;
90+
}
91+
92+
93+
/**
94+
* @return bool
95+
*/
96+
public function hasTestCenter()
97+
{
98+
return ($this->testCenter !== null && $this->testCenter !== []);
99+
}
100+
101+
102+
/**
103+
* @return string
104+
*/
105+
public function getLabor(): string
106+
{
107+
return $this->labor;
108+
}
109+
110+
111+
/**
112+
* @param string $labor
113+
* @return RoleDataProvider
114+
*/
115+
public function setLabor(string $labor = 'labor')
116+
{
117+
$this->labor = $labor;
118+
119+
return $this;
120+
}
121+
122+
123+
/**
124+
* @return RoleDataProvider
125+
*/
126+
public function unsetLabor()
127+
{
128+
$this->labor = null;
129+
130+
return $this;
131+
}
132+
133+
134+
/**
135+
* @return bool
136+
*/
137+
public function hasLabor()
138+
{
139+
return ($this->labor !== null && $this->labor !== []);
140+
}
141+
142+
143+
/**
144+
* @return array
145+
*/
146+
protected function getElements(): array
147+
{
148+
return array (
149+
'doctor' =>
150+
array (
151+
'name' => 'doctor',
152+
'allownull' => false,
153+
'default' => 'doctor',
154+
'type' => 'string',
155+
'is_collection' => false,
156+
'is_dataprovider' => false,
157+
'isCamelCase' => false,
158+
),
159+
'testCenter' =>
160+
array (
161+
'name' => 'testCenter',
162+
'allownull' => false,
163+
'default' => 'testCenter',
164+
'type' => 'string',
165+
'is_collection' => false,
166+
'is_dataprovider' => false,
167+
'isCamelCase' => false,
168+
),
169+
'labor' =>
170+
array (
171+
'name' => 'labor',
172+
'allownull' => false,
173+
'default' => 'labor',
174+
'type' => 'string',
175+
'is_collection' => false,
176+
'is_dataprovider' => false,
177+
'isCamelCase' => false,
178+
),
179+
);
180+
}
181+
}

schema/schema.dataprovider.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
66
xsi:schemaLocation="xervice:dataprovider-01 http://static.xervice.online/schema/dataprovider.schema.xsd"
77
>
8+
<DataProvider name="Role">
9+
<DataElement name="doctor" type="string" default="doctor"/>
10+
<DataElement name="testCenter" type="string" default="testCenter"/>
11+
<DataElement name="labor" type="string" default="labor"/>
12+
</DataProvider>
13+
814
<DataProvider name="NumberCreationRequestAPI">
915
<DataElement name="doctorId" type="int"/>
1016
<DataElement name="number" type="string"/>

0 commit comments

Comments
 (0)