Omnipay\Common\CreditCard::getBillingName PHP Метод

getBillingName() публичный Метод

Get the card billing name.
public getBillingName ( ) : string
Результат string
    public function getBillingName()
    {
        return trim($this->getBillingFirstName() . ' ' . $this->getBillingLastName());
    }

Usage Example

Пример #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());
 }
CreditCard