/** * Fill the string properties in a one go * @param array $contact * @param Sabre\VObject\Component $vcard * @return Sabre\VObject\Component */ protected static function _addPropertyStrings($contact, $vcard) { foreach (self::$_propertyStrings as $property) { if (isset($contact[$property])) { $vcard->setString($property, $contact[$property]); } } return $vcard; }