The metaphor used in the sentence above is used to communicate Hope.
Very often, in literature, the Sun is used to represent hope, freedom, happiness, and joy.
A metaphor is a literary device in the form of a word, phrase or figure of speech that is used to describe or define an object or a person as though there were something else.
An example of a metaphor is His eyes were hard as stone.
See the link below for more about metaphors:
https://brainly.com/question/9418370