Gc\Form\AbstractForm::getAdapter PHP Method

getAdapter() public method

Get db adapter
public getAdapter ( ) : Zend\Db\Adapter\Adapter
return Zend\Db\Adapter\Adapter
    public function getAdapter()
    {
        return GlobalAdapterFeature::getStaticAdapter();
    }

Usage Example

Esempio n. 1
0
 /**
  * Test
  *
  * @return void
  */
 public function testAddContentWithWrongParameters()
 {
     $this->setExpectedException('\\Gc\\Exception');
     $this->assertNull($this->object->addContent($this->object, $this->object->getAdapter()));
 }