NewsletterMapper::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Newsletter\Mapper;
4
5
use Zend\Db\Adapter\Adapter;
6
use Zend\Db\Adapter\AdapterAwareInterface;
7
use Zend\Db\TableGateway\AbstractTableGateway;
8
9
class NewsletterMapper extends AbstractTableGateway implements AdapterAwareInterface
10
{
11
    protected $table = 'newsletter';
12
13
    public function __construct(Adapter $adapter)
14
    {
15
        $this->adapter = $adapter;
16
        $this->initialize();
17
    }
18
19
    public function setDbAdapter(Adapter $adapter)
20
    {
21
        throw new \Exception('Set Adapter in constructor.');
22
    }
23
}
24