setShippingFirstName() public method

Sets the first part of the card shipping name.
public setShippingFirstName ( string $value ) : CreditCard
$value string
return CreditCard provides a fluent interface.
コード例 #1
0
ファイル: CreditCardTest.php プロジェクト: bytrix/witkey
 public function testShippingName()
 {
     $this->card->setShippingFirstName('Bob');
     $this->card->setShippingLastName('Smith');
     $this->assertEquals('Bob Smith', $this->card->getShippingName());
     $this->card->setShippingName('John Foo');
     $this->assertEquals('John', $this->card->getShippingFirstName());
     $this->assertEquals('Foo', $this->card->getShippingLastName());
 }