PayPal\Api\PotentialPayerInfo::getEmail PHP Method

getEmail() public method

Email address representing the potential payer.
Deprecation: Not publicly available
public getEmail ( ) : string
return string
    public function getEmail()
    {
        return $this->email;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param PotentialPayerInfo $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getEmail(), "TestSample");
     $this->assertEquals($obj->getExternalRememberMeId(), "TestSample");
     $this->assertEquals($obj->getAccountNumber(), "TestSample");
     $this->assertEquals($obj->getBillingAddress(), AddressTest::getObject());
 }