| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function setWith($value, $checkType = true) |
||
| 27 | { |
||
| 28 | parent::setWith($value, $checkType); |
||
| 29 | |||
| 30 | if ($checkType === true) { |
||
| 31 | if (self::isDataSource($this->value) === false) { |
||
| 32 | $this->fail($this->getLocale()->_('%s is not an datasource', $this)); |
||
| 33 | } else { |
||
| 34 | $this->pass(); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 38 | return $this; |
||
| 39 | } |
||
| 40 | |||
| 59 |