public function getAttachedCriterion()
    {
        $criterions = [$this];
        foreach ($this->getClauses() as $criterion) {
            $criterions = array_merge($criterions, $criterion->getAttachedCriterion());
        }

        return $criterions;
    }
public function getAttachedCriterion()
    {
        $criterions = [$this];
        foreach ($this->getClauses() as $criterion) {
            $criterions = array_merge($criterions, $criterion->getAttachedCriterion());
        }

        return $criterions;
    }
public function getAttachedCriterion ( ) { $ criterions = [ $ this ] ; foreach ( $ this -> getClauses ( ) as $ criterion ) { $ criterions = array_merge ( $ criterions , $ criterion -> getAttachedCriterion ( ) ) ; } return $ criterions ; }
get an array of all criterion attached to this
recursing through all sub criterion
@return AbstractCriterion[]
get an array of all criterion attached to this recursing through all sub criterion