I think that's a double entendre, or double meaning.
A metaphor is an object, person, or animal that represents something beyond itself
stanza
The literary term is a person idea action or object that represents something else is metaphor.
This is called a symbol. A symbol is a tangible object or image that represents an abstract concept or idea. It has both its literal meaning and a deeper, associated meaning.
A national flag is a powerful symbol that stands for both itself and something beyond itself. While it is a physical piece of fabric with specific colors and designs, it represents the identity, values, and unity of a nation. The flag evokes emotions of patriotism, pride, and solidarity among its citizens while also conveying messages of cultural heritage and history. Thus, it serves as a tangible object that embodies deeper meanings and sentiments.
This literary device is called a symbol. Symbols are often used to convey deeper meanings or ideas beyond their literal interpretation in a text.
The object is serving as a symbol. Symbols are used to convey meaning that goes beyond their literal representation and can embody concepts, beliefs, or values in a more abstract way.
symbol mnemonic
This sounds very much like a symbol (Something that means itself and something more).
An anachronism is something that is "out of place" chronologically.
An allusion is a reference to a text, event, object, or person that exists outside the literary work itself. Allusions are meant to enhance the reader's understanding or add layers of meaning to the text by drawing on the reader's knowledge of the referenced element.
symbol