| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class LTreeService implements LTreeServiceInterface |
||
| 13 | { |
||
| 14 | private $helper; |
||
| 15 | |||
| 16 | 43 | public function __construct(LTreeHelper $helper) |
|
| 17 | { |
||
| 18 | 43 | $this->helper = $helper; |
|
| 19 | } |
||
| 20 | |||
| 21 | 1 | public function createPath(LTreeModelInterface $model): void |
|
| 22 | { |
||
| 23 | 1 | $this->helper->buildPath($model); |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param LTreeModelInterface|Model $model |
||
| 28 | */ |
||
| 29 | 2 | public function updatePath(LTreeModelInterface $model): void |
|
| 30 | { |
||
| 31 | 2 | $columns = array_intersect_key($model->getAttributes(), array_flip($model->getLtreeProxyUpdateColumns())); |
|
|
|
|||
| 32 | |||
| 33 | 2 | $this->helper->moveNode($model, $model->ltreeParent, $columns); |
|
| 34 | 2 | $this->helper->buildPath($model); |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param LTreeModelInterface|Model $model |
||
| 39 | */ |
||
| 40 | 1 | public function dropDescendants(LTreeModelInterface $model): void |
|
| 45 | } |
||
| 46 | } |
||
| 47 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.