public function _newOperatorWithReference($line) { $regex = "#&\\s?new\\s#"; if (preg_match($regex, $line)) { return true; } return false; }