setName() public method

Set the name of the form element object.
public setName ( string $name ) : Element
$name string
return Element
Example #1
0
 public function testSetAndGetName()
 {
     $e = new Element('text', 'email');
     $e->setName('new_email');
     $this->assertEquals('new_email', $e->getName());
 }