addRole() public méthode

Add role
public addRole ( string $role )
$role string The role for the person.
Exemple #1
0
 /**
  * Test multiple roles
  *
  * @expectedException JeroenDesloovere\VCard\Exception
  */
 public function testMultipleRoles()
 {
     $this->assertEquals($this->vcard, $this->vcard->addRole('1'));
     $this->assertEquals($this->vcard, $this->vcard->addRole('2'));
 }