Conditions | 2 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function __construct(ScriptInterface $script) |
||
26 | { |
||
27 | array_map(function (Operation $value) { |
||
28 | if (!$value->isPush()) { |
||
29 | throw new \InvalidArgumentException('Script must only contain push ops'); |
||
30 | } |
||
31 | |||
32 | $this->values[] = $value->getData(); |
||
33 | }, $script->getScriptParser()->decode()); |
||
34 | |||
35 | $this->script = $script; |
||
36 | } |
||
37 | |||
62 |