public function getIndividualData()
    {
        $individual = $this->getIndividual();

        if (!$individual) {
            return array();
        }

        $data = array(
            'address' => array(
                'streetAddress' => $individual->getAddress1(),
                'locality' => $individual->getCity(),
                'postalCode' => $individual->getPostCode(),
                'region' => $individual->getState(),
            ),
            'dateOfBirth' => $individual->getBirthday(),
            'email' => $individual->getEmail(),
            'firstName' => $individual->getFirstName(),
            'lastName' => $individual->getLastName(),
            'phone' => $individual->getPhone(),
            'ssn' => $individual->getSsn(),
        );

        // Remove null values
        $data = array_filter($data, function($value){
            return ! is_null($value);
        });

        if (empty($data)) {
            return $data;
        } else {
            return array('individual' => $data);
        }
    }
public function getIndividualData()
    {
        $individual = $this->getIndividual();

        if (!$individual) {
            return array();
        }

        $data = array(
            'address' => array(
                'streetAddress' => $individual->getAddress1(),
                'locality' => $individual->getCity(),
                'postalCode' => $individual->getPostCode(),
                'region' => $individual->getState(),
            ),
            'dateOfBirth' => $individual->getBirthday(),
            'email' => $individual->getEmail(),
            'firstName' => $individual->getFirstName(),
            'lastName' => $individual->getLastName(),
            'phone' => $individual->getPhone(),
            'ssn' => $individual->getSsn(),
        );

        // Remove null values
        $data = array_filter($data, function($value){
            return ! is_null($value);
        });

        if (empty($data)) {
            return $data;
        } else {
            return array('individual' => $data);
        }
    }
public function getIndividualData ( ) { $ individual = $ this -> getIndividual ( ) ; if ( ! $ individual ) { return array ( ) ; } $ data = array ( 'address' => array ( 'streetAddress' => $ individual -> getAddress1 ( ) , 'locality' => $ individual -> getCity ( ) , 'postalCode' => $ individual -> getPostCode ( ) , 'region' => $ individual -> getState ( ) , ) , 'dateOfBirth' => $ individual -> getBirthday ( ) , 'email' => $ individual -> getEmail ( ) , 'firstName' => $ individual -> getFirstName ( ) , 'lastName' => $ individual -> getLastName ( ) , 'phone' => $ individual -> getPhone ( ) , 'ssn' => $ individual -> getSsn ( ) , ) ; // Remove null values $ data = array_filter ( $ data , function ( $ value ) { return ! is_null ( $ value ) ; } ) ; if ( empty ( $ data ) ) { return $ data ; } else { return array ( 'individual' => $ data ) ; } }
Get the individual data.

@return array
Get the individual data .