Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | abstract class AbstractTableAwareRequest extends AbstractRequest |
||
8 | { |
||
9 | /** |
||
10 | * @var string The table name. |
||
11 | */ |
||
12 | protected $tableName; |
||
13 | |||
14 | /** |
||
15 | * Registers the Marshaler and table name with this object. |
||
16 | * |
||
17 | * @param Marshaler $marshaler The Marshaler. |
||
18 | * @param string $tableName The table name. |
||
19 | */ |
||
20 | 41 | public function __construct(Marshaler $marshaler, string $tableName) |
|
21 | { |
||
22 | 41 | parent::__construct($marshaler); |
|
23 | 41 | $this->setTableName($tableName); |
|
24 | 41 | } |
|
25 | |||
26 | /** |
||
27 | * Registers the table name. |
||
28 | * |
||
29 | * @param string $tableName The table name. |
||
30 | * @return RequestInterface An implementation of this interface. |
||
31 | */ |
||
32 | 41 | final public function setTableName(string $tableName): RequestInterface |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * {@inheritDoc} |
||
40 | */ |
||
41 | 36 | public function get(): array |
|
45 | ]; |
||
46 | } |
||
48 |