| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | final class EmailExtension 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 |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param mixed $value |
||
| 36 | */ |
||
| 37 | public function pack(Packer $packer, $value) : ?string |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 48 | public function unpackExt(BufferUnpacker $unpacker, int $extLength) : Email |
||
| 53 |