| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function __construct ( array $options ) |
||
| 23 | { |
||
| 24 | switch ( $options["type"] ) { |
||
| 25 | case JavaTransformerArgumentType::ARG_TYPE_COLUMN: |
||
| 26 | $this->columnValue = $options["columnValue"]; |
||
| 27 | break; |
||
| 28 | case JavaTransformerArgumentType::ARG_TYPE_STRING: |
||
| 29 | $this->stringValue = $options["stringValue"]; |
||
| 30 | break; |
||
| 31 | case JavaTransformerArgumentType::ARG_TYPE_MIXED: |
||
| 32 | $this->mixedKey = $options["mixedKey"]; |
||
| 33 | $this->mixedVal = $options["mixedVal"]; |
||
| 34 | break; |
||
| 35 | default: |
||
| 36 | throw new SourceWatcherException( "Type not supported" ); |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->type = $options["type"]; |
||
| 40 | } |
||
| 82 |