| 1 | <?php |
||
| 9 | abstract class SigHash implements SigHashInterface |
||
| 10 | { |
||
| 11 | const V0 = 0; |
||
| 12 | const V1 = 1; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var TransactionInterface |
||
| 16 | */ |
||
| 17 | protected $tx; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * SigHash constructor. |
||
| 21 | * @param TransactionInterface $transaction |
||
| 22 | */ |
||
| 23 | public function __construct(TransactionInterface $transaction) |
||
| 27 | |||
| 28 | abstract public function calculate(ScriptInterface $txOutScript, $inputToSign, $sighashType = SigHash::ALL); |
||
| 29 | } |
This check looks for accesses to local static members using the fully qualified name instead of
self::.While this is perfectly valid, the fully qualified name of
Certificate::TRIPLEDES_CBCcould just as well be replaced byself::TRIPLEDES_CBC. Referencing local members withself::assured the access will still work when the class is renamed, makes it perfectly clear that the member is in fact local and will usually be shorter.