Ejemplo n.º 1
0
 /**
  * Returns the default class for a property name.
  *
  * @param string $propertyName
  * @return string
  */
 public function getClassNameForPropertyName($propertyName)
 {
     $className = parent::getClassNameForPropertyName($propertyName);
     // In vCard 4, BINARY no longer exists, and we need URI instead.
     if ($className == 'Sabre\\VObject\\Property\\Binary' && $this->getDocumentType() === self::VCARD40) {
         return 'Sabre\\VObject\\Property\\Uri';
     }
     return $className;
 }