How can I have multiple implements in my model?
my current model is like this:
class Post extends Model implements ViewableContract
{
........
}
now i need to add implements Feedable
as well.
should i use comma in between or put them in brackets or what?
Yeah! you can use comma in between the ViewableContract and Feedable like this:
class Post extends Model implements ViewableContract, Feedable
{
.....
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With