public static function decode(Vpdi_Property $EMAIL) { $em = new Vpdi_Vcard_Email($EMAIL->value()); $em->addTypes($EMAIL->getParam('TYPE')); return $em; }
/** * Adds an EMAIL property by passing a Vpdi_Vcard_Email object * * @access public * @param Vpdi_Vcard_Email $email * @return void */ public function addEmail(Vpdi_Vcard_Email $email) { $this->addProperty($email->encode()); }