private function extractClass($regEx, $classContent)
    {
        preg_match($regEx, $classContent, $matches);
        if (isset($matches[1]) && class_exists($matches[1])) {
            return $matches[1];
        }

        return;
    }