| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 11 | public static function create( |
|
| 21 | ReaderInterface $reader, |
||
| 22 | mixed $data = null, |
||
| 23 | ?string $archiveFilePath = null, |
||
| 24 | ): Message { |
||
| 25 | 11 | return new Message( |
|
| 26 | 11 | $reader->getFile()->getFilename(), |
|
| 27 | 11 | $reader->getFile()->getPathname(), |
|
| 28 | 11 | $reader->index(), |
|
| 29 | 11 | $reader->count(), |
|
| 30 | 11 | $data, |
|
| 31 | 11 | $archiveFilePath |
|
| 32 | 11 | ); |
|
| 35 |