3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Feed\PubSubHubbub\Model
;
12 use Zend\Db\TableGateway\TableGateway
;
13 use Zend\Db\TableGateway\TableGatewayInterface
;
18 * Zend\Db\TableGateway\TableGatewayInterface instance to host database methods
20 * @var TableGatewayInterface
27 * @param null|TableGatewayInterface $tableGateway
29 public function __construct(TableGatewayInterface
$tableGateway = null)
31 if ($tableGateway === null) {
32 $parts = explode('\\', get_class($this));
33 $table = strtolower(array_pop($parts));
34 $this->db
= new TableGateway($table, null);
36 $this->db
= $tableGateway;