forked from ProcessMaker/processmaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColumn.php
More file actions
38 lines (30 loc) · 819 Bytes
/
Column.php
File metadata and controls
38 lines (30 loc) · 819 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
<?php
namespace ProcessMaker\Models;
class Column
{
public $label;
public $field;
public $sortable;
public $default;
public $format;
public $mask;
/**
* @OA\Schema(
* schema="columns",
* @OA\Property(property="label", type="string"),
* @OA\Property(property="field", type="string"),
* @OA\Property(property="sortable", type="boolean"),
* @OA\Property(property="default", type="boolean"),
* @OA\Property(property="format", type="string"),
* @OA\Property(property="mask", type="string"),
* )
*/
public function __construct($properties = [])
{
foreach ($properties as $key => $value) {
if (property_exists($this, $key)) {
$this->{$key} = $value;
}
}
}
}