Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function __construct(QROptions $options, QRMatrix $matrix){ |
||
46 | $this->options = $options; |
||
47 | |||
48 | $this->moduleCount = $matrix->size(); |
||
49 | |||
50 | if($this->moduleCount < 21){ // minimum QR modules @todo: quet zone |
||
51 | throw new QRCodeOutputException('Invalid matrix!'); |
||
52 | } |
||
53 | |||
54 | $this->matrix = $matrix; |
||
55 | } |
||
56 | |||
75 |