| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function __construct( |
||
| 28 | string $message, |
||
| 29 | array $recipients, |
||
| 30 | ?RequestType $type = null, |
||
| 31 | ?string $sender = null, |
||
| 32 | ?int $customId = null |
||
| 33 | ) { |
||
| 34 | $this->message = $message; |
||
| 35 | |||
| 36 | if ($type === null) { |
||
| 37 | $type = RequestType::getRequestTypeHigh(); |
||
| 38 | } |
||
| 39 | $this->type = $type; |
||
| 40 | $this->sender = $sender; |
||
| 41 | $this->customId = $customId; |
||
| 42 | $this->recipients = $recipients; |
||
| 43 | } |
||
| 44 | |||
| 73 |