Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
1 | <?php |
||
38 | 1 | public function __construct($publicKey, $ttl, $algorithm, $timestamp = null, $privateKey = null) |
|
39 | { |
||
40 | 1 | $this->publicKey = (string) $publicKey; |
|
41 | 1 | $this->ttl = (int) $ttl; |
|
42 | 1 | $this->algorithm = (string) $algorithm; |
|
43 | 1 | $this->timestamp = $timestamp ? (int) $timestamp : time(); |
|
44 | 1 | $this->privateKey = (string) $privateKey; |
|
45 | 1 | } |
|
46 | |||
87 |