| 1 | <?php |
||
| 5 | class CheckVatResponse |
||
| 6 | { |
||
| 7 | protected $countryCode; |
||
| 8 | |||
| 9 | protected $vatNumber; |
||
| 10 | |||
| 11 | protected $requestDate; |
||
| 12 | |||
| 13 | protected $valid; |
||
| 14 | |||
| 15 | protected $name; |
||
| 16 | |||
| 17 | protected $address; |
||
| 18 | |||
| 19 | public function getCountryCode() |
||
| 20 | { |
||
| 21 | return $this->countryCode; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getVatNumber() |
||
| 25 | { |
||
| 26 | return $this->vatNumber; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getRequestDate() |
||
| 30 | { |
||
| 31 | if (!$this->requestDate instanceof \DateTime) { |
||
| 32 | $this->requestDate = new \DateTime($this->requestDate); |
||
| 33 | } |
||
| 34 | |||
| 35 | return $this->requestDate; |
||
| 36 | } |
||
| 37 | |||
| 38 | 2 | public function isValid() |
|
| 42 | |||
| 43 | public function getName() |
||
| 44 | { |
||
| 45 | return $this->name; |
||
| 47 | |||
| 48 | public function getAddress() |
||
| 52 | } |