Conditions | 5 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
49 | public function __construct(QROutputOptionsAbstract $outputOptions = null){ |
||
50 | $this->options = $outputOptions; |
||
51 | |||
52 | if($this->optionsInterface && !$this->options instanceof $this->optionsInterface){ |
||
53 | $this->options = new $this->optionsInterface; |
||
54 | } |
||
55 | |||
56 | if(is_array($this->types) && !in_array($this->options->type, $this->types , true)){ |
||
57 | throw new QRCodeOutputException('Invalid output type!'); |
||
58 | } |
||
59 | |||
60 | } |
||
61 | |||
85 |