setMethod() публичный Метод

Set the form method.
public setMethod ( string $method ) : Form
$method string
Результат Form
Пример #1
0
 public function testSetAndGetMethod()
 {
     $f = new Form('/submit', 'post');
     $f->setMethod('get');
     $this->assertEquals('get', $f->getMethod());
 }