-
Notifications
You must be signed in to change notification settings - Fork 246
Expand file tree
/
Copy pathScreenType.php
More file actions
42 lines (37 loc) · 863 Bytes
/
ScreenType.php
File metadata and controls
42 lines (37 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
namespace ProcessMaker\Models;
/**
* Represents a business screen Type definition.
*
* @property string $id
* @property string $name
*
* * @OA\Schema(
* schema="ScreenTypeEditable",
* @OA\Property(property="name", type="string"),
* ),
* @OA\Schema(
* schema="ScreenType",
* allOf={
* @OA\Schema(ref="#/components/schemas/ScreenTypeEditable"),
* @OA\Schema(
* type="object",
* @OA\Property(property="id", type="string", format="id"),
* )
* },
* )
*/
class ScreenType extends ProcessMakerModel
{
protected $connection = 'processmaker';
public $timestamps = false;
protected $fillable = [
'name',
];
public static function rules()
{
return [
'name' => 'required|string|max:100|unique:screen_types,name,alpha_spaces',
];
}
}