| Conditions | 4 |
| Paths | 6 |
| Total Lines | 33 |
| Code Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 51 | public function __construct($optionValue, $option, $currentValue, $template = "") { |
||
| 52 | if (empty($template)) { |
||
| 53 | $template = self::DEFAULT_TEMPLATE; |
||
| 54 | } |
||
| 55 | if (isObject($option)) { |
||
| 56 | parent::__construct( |
||
| 57 | [ |
||
| 58 | 'value' => $option->id, |
||
| 59 | 'title' => $option->title |
||
| 60 | ], |
||
| 61 | $template, |
||
| 62 | [], |
||
| 63 | $currentValue |
||
| 64 | ); |
||
| 65 | } elseif (is_array($option)) { |
||
| 66 | parent::__construct( |
||
| 67 | $option, |
||
| 68 | $template, |
||
| 69 | [], |
||
| 70 | $currentValue |
||
| 71 | ); |
||
| 72 | } else { |
||
| 73 | parent::__construct( |
||
| 74 | [ |
||
| 75 | 'value' => $optionValue, |
||
| 76 | 'title' => $option |
||
| 77 | ], |
||
| 78 | $template, |
||
| 79 | [], |
||
| 80 | $currentValue |
||
| 81 | ); |
||
| 82 | } |
||
| 83 | } |
||
| 84 | } |
||
| 85 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.