1 | <?php |
||
12 | final class Field implements JsonSerializable |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $title; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $value; |
||
23 | |||
24 | /** |
||
25 | * @var bool |
||
26 | */ |
||
27 | private $short; |
||
28 | |||
29 | /** |
||
30 | * AttachmentField constructor. |
||
31 | * |
||
32 | * @param string $title |
||
33 | * @param string $value |
||
34 | * @param bool $short |
||
35 | */ |
||
36 | 1 | public function __construct($title, $value, $short = false) |
|
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 1 | public function jsonSerialize() |
|
54 | } |
||
55 |