| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | public function createCharacteristicAssociated():Characteristic |
||
| 47 | { |
||
| 48 | $type = $this->type === self::TYPE_CULTURE ? Characteristic::FARMING_TYPE : Characteristic::CROPPING_SYSTEM; |
||
| 49 | $characteristic = new Characteristic( |
||
| 50 | Uuid::uuid4(), |
||
| 51 | $type, |
||
| 52 | $this->title, |
||
|
|
|||
| 53 | false, |
||
| 54 | $this->pageId |
||
| 55 | ); |
||
| 56 | $characteristic->create($this->icon); |
||
| 57 | return $characteristic; |
||
| 58 | } |
||
| 67 |