setBillingName() public method

Sets the card billing name.
public setBillingName ( string $value ) : CreditCard
$value string
return CreditCard provides a fluent interface.
Beispiel #1
0
 public function testBillingName()
 {
     $this->card->setBillingFirstName('Bob');
     $this->card->setBillingLastName('Smith');
     $this->assertEquals('Bob Smith', $this->card->getBillingName());
     $this->card->setBillingName('John Foo');
     $this->assertEquals('John', $this->card->getBillingFirstName());
     $this->assertEquals('Foo', $this->card->getBillingLastName());
 }