DHL-PHP-SDK  v0.4
A wrapper for the DHL-XML-API Version 2
SendPerson.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Petschko\DHL;
4 
16 use stdClass;
17 
23 abstract class SendPerson extends Address {
32  private $name;
33 
43  private $name2 = null;
44 
54  private $name3 = null;
55 
65  private $phone = null;
66 
76  private $email = null;
77 
87  private $contactPerson = null;
88 
92  public function __destruct() {
93  parent::__destruct();
94  unset($this->name);
95  unset($this->name2);
96  unset($this->name3);
97  unset($this->phone);
98  unset($this->email);
99  unset($this->contactPerson);
100  }
101 
107  public function getName() {
108  return $this->name;
109  }
110 
116  public function setName($name) {
117  $this->name = $name;
118  }
119 
125  public function getName2() {
126  return $this->name2;
127  }
128 
134  public function setName2($name2) {
135  $this->name2 = $name2;
136  }
137 
143  public function getName3() {
144  return $this->name3;
145  }
146 
152  public function setName3($name3) {
153  $this->name3 = $name3;
154  }
155 
161  public function getPhone() {
162  return $this->phone;
163  }
164 
170  public function setPhone($phone) {
171  $this->phone = $phone;
172  }
173 
179  public function getEmail() {
180  return $this->email;
181  }
182 
188  public function setEmail($email) {
189  $this->email = $email;
190  }
191 
197  public function getContactPerson() {
198  return $this->contactPerson;
199  }
200 
206  public function setContactPerson($contactPerson) {
207  $this->contactPerson = $contactPerson;
208  }
209 
210 
218  public function getClass_v1() {
219  trigger_error('[DHL-PHP-SDK]: Version 1 Methods are deprecated and will removed soon (Called method ' . __METHOD__ . ')!', E_USER_DEPRECATED);
220  trigger_error('[DHL-PHP-SDK]: Called Version 1 Method: ' . __METHOD__ . ' is incomplete (does nothing)!', E_USER_WARNING);
221 
222  return new StdClass;
223  }
224 
230  abstract public function getClass_v2();
231 }
setContactPerson($contactPerson)
Definition: SendPerson.php:206