Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
8 / 8
CRAP
100.00% covered (success)
100.00%
9 / 9
Alberthorta\Bonobo\MailingList\Contact
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
8 / 8
8
100.00% covered (success)
100.00%
9 / 9
 __construct
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 getCompany
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getAddress1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getAddress2
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getCity
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getState
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getZip
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 getCountry
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
namespace Alberthorta\Bonobo\MailingList;
class Contact {
    protected $data;
    /**
     * Contact constructor.
     * @param $data
     */
    public function __construct($data) {
        $this->data = $data;
    }
    /**
     * @return string
     */
    public function getCompany() {
        return $this->data->company;
    }
    /**
     * @return string
     */
    public function getAddress1() {
        return $this->data->addr1;
    }
    /**
     * @return string
     */
    public function getAddress2() {
        return $this->data->addr2;
    }
    /**
     * @return string
     */
    public function getCity() {
        return $this->data->city;
    }
    /**
     * @return string
     */
    public function getState() {
        return $this->data->state;
    }
    /**
     * @return string
     */
    public function getZip() {
        return $this->data->zip;
    }
    /**
     * @return string
     */
    public function getCountry() {
        return $this->data->country;
    }
}