Exakat\Analyzer\Analyzer::hasNoChildren PHP Method

hasNoChildren() public method

public hasNoChildren ( $childrenClass, $outs = [] )
    public function hasNoChildren($childrenClass, $outs = array())
    {
        if (empty($outs)) {
            $out = '.out()';
        } else {
            $out = array();
            if (!is_array($outs)) {
                $outs = array($outs);
            }
            foreach ($outs as $o) {
                if (empty($o)) {
                    $out[] = '.out()';
                } else {
                    $out[] = ".out('{$o}')";
                }
            }
            $out = implode('', $out);
        }
        $this->addMethod('where( __' . $out . '.not(hasLabel(' . $this->SorA($childrenClass) . ')))');
        return $this;
    }
Analyzer