setId() public méthode

sets id
public setId ( string $id ) : void
$id string new id
Résultat void
Exemple #1
0
 /**
  * Test for Theme::getId
  *
  * @return void
  */
 public function testGetSetId()
 {
     $this->assertEmpty($this->object->getId(), 'ID is empty by default');
     $this->object->setId('NewID');
     $this->assertEquals('NewID', $this->object->getId());
 }