@@ -33,6 +33,11 @@ class Click extends AbstractXMLWrapper
3333 */
3434 public $ linkId ;
3535
36+ /**
37+ * @var string
38+ */
39+ public $ linkType ;
40+
3641 /**
3742 * @var string
3843 */
@@ -99,6 +104,7 @@ public function toString()
99104 ", contact= " . $ this ->contact ->toString () .
100105 ", mailingId= " . $ this ->mailingId .
101106 ", linkId= " . $ this ->linkId .
107+ ", linkType= " . $ this ->linkType .
102108 ", linkUrl= " . $ this ->linkUrl .
103109 ", linkTags= " . $ linkTags .
104110 ", clientInfos= " . $ this ->clientInfos ->toString () .
@@ -129,6 +135,9 @@ public function fromXML($xmlElement)
129135 if (isset ($ xmlElement ->link_id )) {
130136 $ this ->linkId = $ xmlElement ->link_id ;
131137 }
138+ if (isset ($ xmlElement ->link_type )) {
139+ $ this ->linkType = $ xmlElement ->link_type ;
140+ }
132141 if (isset ($ xmlElement ->link_url )) {
133142 $ this ->linkUrl = $ xmlElement ->link_url ;
134143 }
@@ -170,6 +179,7 @@ public function toCsvString()
170179 "; " . $ this ->contact ->toCsvString () .
171180 "; " . $ this ->mailingId .
172181 "; " . $ this ->linkId .
182+ "; " . $ this ->linkType .
173183 "; " . $ this ->linkUrl .
174184 "; " . $ this ->clientInfos ->toCsvString () .
175185 "; " . $ this ->transactionId .
@@ -202,6 +212,9 @@ public function toXML()
202212 if (isset ($ this ->linkId )) {
203213 $ xml ->addChild ("link_id " , $ this ->linkId );
204214 }
215+ if (isset ($ this ->linkType )) {
216+ $ xml ->addChild ("link_type " , $ this ->linkType );
217+ }
205218 if (isset ($ this ->linkUrl )) {
206219 $ xml ->addChild ("link_url " , $ this ->linkUrl );
207220 }
0 commit comments