protected function cleanData(array $data): array
    {
        $options = $this->getOptions();

        $disallowedDataKeys = array(
            $options->getIdColumnName(),
            $options->getLeftColumnName(),
            $options->getRightColumnName(),
            $options->getLevelColumnName(),
            $options->getParentIdColumnName(),
        );

        if (null !== $options->getScopeColumnName()) {
            $disallowedDataKeys[] = $options->getScopeColumnName();
        }

        return array_diff_key($data, array_flip($disallowedDataKeys));
    }
protected function cleanData(array $data): array
    {
        $options = $this->getOptions();

        $disallowedDataKeys = array(
            $options->getIdColumnName(),
            $options->getLeftColumnName(),
            $options->getRightColumnName(),
            $options->getLevelColumnName(),
            $options->getParentIdColumnName(),
        );

        if (null !== $options->getScopeColumnName()) {
            $disallowedDataKeys[] = $options->getScopeColumnName();
        }

        return array_diff_key($data, array_flip($disallowedDataKeys));
    }
protected function cleanData ( array $ data ) : array { $ options = $ this -> getOptions ( ) ; $ disallowedDataKeys = array ( $ options -> getIdColumnName ( ) , $ options -> getLeftColumnName ( ) , $ options -> getRightColumnName ( ) , $ options -> getLevelColumnName ( ) , $ options -> getParentIdColumnName ( ) , ) ; if ( null !== $ options -> getScopeColumnName ( ) ) { $ disallowedDataKeys [ ] = $ options -> getScopeColumnName ( ) ; } return array_diff_key ( $ data , array_flip ( $ disallowedDataKeys ) ) ; }
Data cannot contain keys like idColumnName, levelColumnName, ...

@param array $data

@return array
Data cannot contain keys like idColumnName levelColumnName ...