| Total Complexity | 2 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class Address |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string Billing address line 1 |
||
| 15 | */ |
||
| 16 | private $address_line_1; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string Billing address line 2 |
||
| 20 | */ |
||
| 21 | private $address_line_2; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string Billing city |
||
| 25 | */ |
||
| 26 | private $city; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string Billing state |
||
| 30 | */ |
||
| 31 | private $state; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string Billind postal code |
||
| 35 | */ |
||
| 36 | private $postal_code; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Address constructor. |
||
| 40 | * @param string $address_line_1 |
||
| 41 | * @param string $address_line_2 |
||
| 42 | * @param string $city |
||
| 43 | * @param string $state |
||
| 44 | * @param string $postal_code |
||
| 45 | */ |
||
| 46 | 3 | public function __construct($address_line_1, $address_line_2, $city, $state, $postal_code) |
|
| 53 | 3 | } |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return array Serializes the Address into a address request object for GPG |
||
| 57 | */ |
||
| 58 | 2 | public function serialize() |
|
| 68 | } |