| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | abstract class ProtocolBase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The actual logger object |
||
| 14 | * @var LoggerInterface |
||
| 15 | */ |
||
| 16 | protected $logger; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Base constructor for all protocol stuff |
||
| 20 | * @param LoggerInterface|null $logger |
||
| 21 | */ |
||
| 22 | 127 | final public function __construct(?LoggerInterface $logger = null) |
|
| 32 | 127 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Should any method have any abnormal default behaviour, we can overwrite this method |
||
| 36 | */ |
||
| 37 | 127 | protected function initializeObject(): ProtocolBase |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * If the object in question uses Packet Identifier functionality, it should be added to the stack |
||
| 44 | */ |
||
| 45 | final public function hasActivePacketIdentifier(): bool |
||
| 50 |