studiometa / create-wordpress-project

A generator to kickstart your WordPress project in a few seconds! ⚡
MIT License
6 stars 3 forks source link

Add a TermRepository #35

Closed titouanmathis closed 3 years ago

titouanmathis commented 3 years ago

To ease the manipulation of terms, we could extend the Repository class.

class TermRepository extends Repository {}

The Repository::query() method should be able to use different strategy to get the results.

Maybe the Repository class should be an abstract class that would handle the caching methods and request a do_query method to be implemented?