| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | 1 | public static function generate( |
|
| 30 | int $state, |
||
| 31 | \DateTime $generatedAt, |
||
| 32 | Cnpj $cnpj, |
||
| 33 | int $sequence, |
||
| 34 | int $invoiceNumber, |
||
| 35 | EmissionType $emissionType, |
||
| 36 | int $controlNumber |
||
| 37 | ) : AbstractAccessKey { |
||
| 38 | 1 | $accessKey = self::generateKey( |
|
| 39 | $state, |
||
| 40 | $generatedAt, |
||
| 41 | $cnpj, |
||
| 42 | 1 | Model::CTe(), |
|
| 43 | $sequence, |
||
| 44 | $invoiceNumber, |
||
| 45 | $emissionType, |
||
| 46 | $controlNumber |
||
| 47 | ); |
||
| 48 | |||
| 49 | 1 | return new self("{$accessKey}"); |
|
|
|
|||
| 50 | } |
||
| 52 |