| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function syncDown( |
||
| 34 | ElementInterface $element, |
||
| 35 | Resources $field, |
||
| 36 | $criteria = null |
||
| 37 | ): bool { |
||
| 38 | /** @var Element $element */ |
||
| 39 | |||
| 40 | $this->readPipelineByElement( |
||
| 41 | $element, |
||
| 42 | $field, |
||
| 43 | $criteria |
||
| 44 | )->build()->pipe( |
||
| 45 | new ElementSaveStage($field) |
||
| 46 | )->pipe( |
||
| 47 | new ElementAssociationStage($field) |
||
| 48 | )(null, $element); |
||
| 49 | |||
| 50 | return !$element->hasErrors(); |
||
| 51 | } |
||
| 52 | |||
| 77 |