| Total Complexity | 6 | 
| Total Lines | 53 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 14 | class PSBTBip32Derivation  | 
            ||
| 15 | { | 
            ||
| 16 | /**  | 
            ||
| 17 | * @var int  | 
            ||
| 18 | */  | 
            ||
| 19 | private $masterKeyFpr;  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * @var int[]  | 
            ||
| 23 | */  | 
            ||
| 24 | private $path;  | 
            ||
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * @var BufferInterface  | 
            ||
| 28 | */  | 
            ||
| 29 | private $rawKey;  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * PSBTBip32Derivation constructor.  | 
            ||
| 33 | * @param BufferInterface $rawKey  | 
            ||
| 34 | * @param int $fpr  | 
            ||
| 35 | * @param int ...$path  | 
            ||
| 36 | */  | 
            ||
| 37 | 5 | public function __construct(BufferInterface $rawKey, int $fpr, int ...$path)  | 
            |
| 42 | 5 | }  | 
            |
| 43 | |||
| 44 | /**  | 
            ||
| 45 | * @return int[]  | 
            ||
| 46 | */  | 
            ||
| 47 | 3 | public function getPath(): array  | 
            |
| 48 |     { | 
            ||
| 49 | 3 | return $this->path;  | 
            |
| 50 | }  | 
            ||
| 51 | |||
| 52 | 3 | public function getMasterKeyFpr(): int  | 
            |
| 55 | }  | 
            ||
| 56 | |||
| 57 | 1 | public function getRawPublicKey(): BufferInterface  | 
            |
| 58 |     { | 
            ||
| 59 | 1 | return $this->rawKey;  | 
            |
| 60 | }  | 
            ||
| 61 | |||
| 62 | 1 | public function getPublicKey(EcAdapterInterface $ecAdapter = null): PublicKeyInterface  | 
            |
| 67 | }  | 
            ||
| 68 | }  | 
            ||
| 69 |