Tony_Li
1 month ago

In template design pattern, should the extended class implements interface or the parent class?

Posted 1 month ago by Tony_Li

Hi,

I just watched the video "Template design pattern" of "Design Patterns in PHP" series. But I'm confused by the source code in Github repository "laracasts/GitHub-Authentication-With-Laravel" -

I see abstract class Provider doesn't explicitly implements "Provider" interface, however the extended class "Github" implements "ProviderInterface". I don't understand why abstract class Provider doesn't... did I miss something here?

Thanks,

Tony

Please sign in or create an account to participate in this conversation.