示例#1
0
 public function map(\Prototype\ContactInformation $contact)
 {
     $value = $this->simpleValue($this->vocabulary->attributes->fullname);
     if (!empty($value)) {
         $contact->setFullname($value);
     }
 }
 public function FNAttribute()
 {
     $vcard = new VObject\Component\VCard();
     $vcard->add('FN', 'Lukas Werner');
     $contact = new ContactInformation();
     $contact->setFullname('Lukas Werner');
     $this->assertEquals($vcard->serialize(), $this->object->convert($contact)->serialize());
 }