Exakat\Analyzer\Analyzer::hasParent PHP Method

hasParent() public method

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