Skip to content

Commit 1135fed

Browse files
author
Rajendra Bera
committed
added title and pretext field in ObjsMessageAttachmentsItem
1 parent c212c91 commit 1135fed

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

generated/Model/ObjsMessageAttachmentsItem.php

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,48 @@ class ObjsMessageAttachmentsItem extends \ArrayObject
3737
*/
3838
protected $imageWidth;
3939

40+
/**
41+
* @var string
42+
*/
43+
protected $title;
44+
45+
/**
46+
* @var string
47+
*/
48+
protected $pretext;
49+
50+
/**
51+
* @return string
52+
*/
53+
public function getTitle()
54+
{
55+
return $this->title;
56+
}
57+
58+
/**
59+
* @param string $title
60+
*/
61+
public function setTitle($title)
62+
{
63+
$this->title = $title;
64+
}
65+
66+
/**
67+
* @return string
68+
*/
69+
public function getPretext()
70+
{
71+
return $this->pretext;
72+
}
73+
74+
/**
75+
* @param string $pretext
76+
*/
77+
public function setPretext($pretext)
78+
{
79+
$this->pretext = $pretext;
80+
}
81+
4082
/**
4183
* @return string
4284
*/

generated/Normalizer/ObjsMessageAttachmentsItemNormalizer.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ public function denormalize($data, $class, $format = null, array $context = [])
6868
$object->setImageWidth($data->{'image_width'});
6969
unset($data->{'image_width'});
7070
}
71+
if (property_exists($data, 'title')) {
72+
$object->setTitle($data->{'title'});
73+
unset($data->{'title'});
74+
}
75+
if (property_exists($data, 'pretext')) {
76+
$object->setPretext($data->{'pretext'});
77+
unset($data->{'pretext'});
78+
}
7179
foreach ($data as $key => $value) {
7280
if (preg_match('/.*/', $key)) {
7381
$object[$key] = $value;
@@ -98,6 +106,12 @@ public function normalize($object, $format = null, array $context = [])
98106
if (null !== $object->getImageWidth()) {
99107
$data->{'image_width'} = $object->getImageWidth();
100108
}
109+
if (null !== $object->getTitle()) {
110+
$data->{'title'} = $object->getTitle();
111+
}
112+
if (null !== $object->getPretext()) {
113+
$data->{'pretext'} = $object->getPretext();
114+
}
101115
foreach ($object as $key => $value) {
102116
if (preg_match('/.*/', $key)) {
103117
$data->{$key} = $value;

0 commit comments

Comments
 (0)