Exakat\Analyzer\Analyzer::hasNoParent PHP Method

hasNoParent() public method

public hasNoParent ( $parentClass, $ins = [] )
    public function hasNoParent($parentClass, $ins = array())
    {
        if (empty($ins)) {
            $in = '.in()';
        } else {
            $in = array();
            if (!is_array($ins)) {
                $ins = array($ins);
            }
            foreach ($ins as $i) {
                if (empty($i)) {
                    $in[] = '.in()';
                } else {
                    $in[] = ".in('{$i}')";
                }
            }
            $in = implode('', $in);
        }
        $this->addMethod('where( __' . $in . '.hasLabel(' . $this->SorA($parentClass) . ').count().is(eq(0)) )');
        return $this;
    }
Analyzer