Generate extend information for PHP classes.