| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class AbstractRequest implements ArrayableInterface, RequestInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Marshaler The Marshaler. |
||
| 12 | */ |
||
| 13 | protected $marshaler; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Registers the Marshaler and table name with this object. |
||
| 17 | * |
||
| 18 | * @param Marshaler $marshaler The Marshaler. |
||
| 19 | */ |
||
| 20 | 44 | public function __construct(Marshaler $marshaler) |
|
| 21 | { |
||
| 22 | 44 | $this->setMarshaler($marshaler); |
|
| 23 | 44 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritDoc} |
||
| 27 | */ |
||
| 28 | 44 | final public function setMarshaler(Marshaler $marshaler): RequestInterface |
|
| 29 | { |
||
| 30 | 44 | $this->marshaler = $marshaler; |
|
| 31 | 44 | return $this; |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritDoc} |
||
| 36 | */ |
||
| 37 | 24 | final public function toArray(): array |
|
| 40 | } |
||
| 41 | } |
||
| 42 |