Sulu\Component\Contact\Model\ContactInterface::getFirstName PHP 메소드

getFirstName() 공개 메소드

Get first name.
public getFirstName ( ) : string
리턴 string
    public function getFirstName();

Usage Example

예제 #1
0
 /**
  * Compares an order-address response with its origin entities.
  *
  * @param OrderAddressInterface $orderAddress
  * @param Address $address
  * @param ContactInterface $contact
  * @param AccountInterface $account
  */
 protected function checkOrderAddress($orderAddress, Address $address, ContactInterface $contact, AccountInterface $account = null)
 {
     // Contact
     $this->assertEquals($contact->getFirstName(), $orderAddress->firstName);
     $this->assertEquals($contact->getLastName(), $orderAddress->lastName);
     if ($contact->getTitle() !== null) {
         $this->assertEquals($contact->getTitle()->getTitle(), $orderAddress->title);
     }
     // Address
     $this->assertEqualsIfExists($address->getStreet(), $orderAddress, 'street');
     $this->assertEqualsIfExists($address->getAddition(), $orderAddress, 'addition');
     $this->assertEqualsIfExists($address->getNumber(), $orderAddress, 'number');
     $this->assertEqualsIfExists($address->getCity(), $orderAddress, 'city');
     $this->assertEqualsIfExists($address->getZip(), $orderAddress, 'zip');
     $this->assertEqualsIfExists($address->getCountry()->getName(), $orderAddress, 'country');
     $this->assertEqualsIfExists($address->getPostboxNumber(), $orderAddress, 'postboxNumber');
     $this->assertEqualsIfExists($address->getPostboxCity(), $orderAddress, 'postboxCity');
     $this->assertEqualsIfExists($address->getPostboxPostcode(), $orderAddress, 'postboxPostcode');
     // Account
     if ($account) {
         $this->assertEqualsIfExists($account->getName(), $orderAddress, 'accountName');
         $this->assertEqualsIfExists($account->getUid(), $orderAddress, 'uid');
     }
 }
All Usage Examples Of Sulu\Component\Contact\Model\ContactInterface::getFirstName