public function analyze() { // Const in a function or an interface (but not a trait ) $this->atomIs('Const')->hasClassInterface()->outIs('CONST')->outIs('NAME'); $this->prepareQuery(); }