private function handleAddressIdentity(AddressInterface $address, UserInterface $user)
    {
        if (null === $address->getGender()) {
            $address->setGender($user->getGender());
        }
        if (null === $address->getFirstName()) {
            $address->setFirstName($user->getFirstName());
        }
        if (null === $address->getLastName()) {
            $address->setLastName($user->getLastName());
        }
    }
private function handleAddressIdentity(AddressInterface $address, UserInterface $user)
    {
        if (null === $address->getGender()) {
            $address->setGender($user->getGender());
        }
        if (null === $address->getFirstName()) {
            $address->setFirstName($user->getFirstName());
        }
        if (null === $address->getLastName()) {
            $address->setLastName($user->getLastName());
        }
    }
private function handleAddressIdentity ( AddressInterface $ address , UserInterface $ user ) { if ( null === $ address -> getGender ( ) ) { $ address -> setGender ( $ user -> getGender ( ) ) ; } if ( null === $ address -> getFirstName ( ) ) { $ address -> setFirstName ( $ user -> getFirstName ( ) ) ; } if ( null === $ address -> getLastName ( ) ) { $ address -> setLastName ( $ user -> getLastName ( ) ) ; } }
Fills the address identity fields if needed.

@param AddressInterface $address
@param UserInterface $user
Fills the address identity fields if needed .