Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
34 | 1 | public static function fromProposal(Proposal $proposal, string $signature): SignedProposal |
|
35 | { |
||
36 | 1 | $signedProposal = new SignedProposal(); |
|
37 | 1 | $signedProposal->setProposalBytes($proposal->serializeToString()); |
|
38 | 1 | $signedProposal->setSignature($signature); |
|
39 | |||
40 | 1 | return $signedProposal; |
|
41 | } |
||
43 |