| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function __construct($base, $data) |
||
| 25 | { |
||
| 26 | $this->base = $base; |
||
| 27 | $this->data = $data; |
||
| 28 | |||
| 29 | /// XXX WTF? $base->di becomes null after passing as argument |
||
| 30 | /// TODO fix! |
||
| 31 | if ($this->base->di === null) { |
||
| 32 | $this->base->di = yii::getContainer(); |
||
| 33 | } |
||
| 34 | if ($this->base->dbc === null) { |
||
| 35 | $this->base->dbc = $this->base->di->get('dbc'); |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 60 |