jeudi 5 novembre 2015

Interface and concrete class naming convention in Laravel

I have an interface and a concrete class. (Item and ItemInterface.)

I am trying to avoid the "Interface" suffix but I do not know how to rename the concrete class.

For a repository I can rename them into ItemRepository (interface) and EloquentItemRepository (concrete class) but how should I proceed in other cases?

For example a Laravel package.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire