src/Clipboard/Filter.php
private function parentIsNotIn($conjunction, array $parentModelIds)
    {
        if (!empty($this->expression)) {
            $this->expression[] = $conjunction;
        }

        $expression = [];
        foreach ($parentModelIds as $parentModelId) {
            $index             = \count($this->variables);
            $expression[]      = \sprintf(self::PARENT_IS_NOT_EXPRESSION, $index);
            $this->variables[] = $parentModelId;
        }
        $this->expression[] = '(' . \implode(' and ', $expression) . ')';
        $this->compiled     = null;

        return $this;
    }
private function parentIsNotIn($conjunction, array $parentModelIds)
    {
        if (!empty($this->expression)) {
            $this->expression[] = $conjunction;
        }

        $expression = [];
        foreach ($parentModelIds as $parentModelId) {
            $index             = \count($this->variables);
            $expression[]      = \sprintf(self::PARENT_IS_NOT_EXPRESSION, $index);
            $this->variables[] = $parentModelId;
        }
        $this->expression[] = '(' . \implode(' and ', $expression) . ')';
        $this->compiled     = null;

        return $this;
    }
private function parentIsNotIn ( $ conjunction , array $ parentModelIds ) { if ( ! empty ( $ this -> expression ) ) { $ this -> expression [ ] = $ conjunction ; } $ expression = [ ] ; foreach ( $ parentModelIds as $ parentModelId ) { $ index = \ count ( $ this -> variables ) ; $ expression [ ] = \ sprintf ( self :: PARENT_IS_NOT_EXPRESSION , $ index ) ; $ this -> variables [ ] = $ parentModelId ; } $ this -> expression [ ] = '(' . \ implode ( ' and ' , $ expression ) . ')' ; $ this -> compiled = null ; return $ this ; }
Add parent is not in.

@param string          $conjunction    AND or OR.
@param array|ModelId[] $parentModelIds The parent ids.

@return static
Add parent is not in .