| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class DateTimeExtension implements Extension |
||
| 21 | { |
||
| 22 | private $type; |
||
| 23 | |||
| 24 | public function __construct(int $type) |
||
| 25 | { |
||
| 26 | $this->type = $type; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getType() : int |
||
| 30 | { |
||
| 31 | return $this->type; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function pack(Packer $packer, $value) : ?string |
||
| 42 | ); |
||
| 43 | } |
||
| 44 | |||
| 45 | public function unpackExt(BufferUnpacker $unpacker, int $extLength) |
||
| 50 |