Focus spell count for things that ask to be able to cast spells?

I was looking at the new shadowcaster archetype and it ask to be able to cast a spell to take it.

My question is: can a ranger take it since they have the Warden spells and take the shadow hound animal companion?