Arcana Coelestia #1020
1020. That these things are meant becomes clear from the fact that everything put together as history from Genesis 1 down to Eber in Chapter 11 means something different from what appears in the letter, and from the consideration that the historical narratives there are purely made-up history customary among the most ancient people. When attesting the truth of some matter they would say that 'Jehovah said it'. Here however 'God' is used because the subject is the spiritual Church. And they did the same when anything true was being, or had been, put into effect.
John 10:7-11
7
Jesus therefore said to them again, "Most certainly, I tell you, I am the sheep's door.
8
All who came before me are thieves and robbers, but the sheep didn't listen to them.
9
I am the door. If anyone enters in by me, he will be saved, and will go in and go out, and will find pasture.
10
The thief only comes to steal, kill, and destroy. I came that they may have life, and may have it abundantly.
11
I am the good shepherd. The good shepherd lays down his life for the sheep.