Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Designing Interfaces in PHP!
You have completed Designing Interfaces in PHP!
Preview
Extending and combining interfaces, guarantees that all methods from all interfaces will be available in an implementing class.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Instead of implementing another interface
I'm going to combine all of these
0:00
requirements into a single
collection interface.
0:02
This will allow us to be certain that
any class that implements a collection
0:05
interface will have all the iterator and
countable methods,
0:10
as well as the new method we'll define.
0:14
Add a new file to the source
interface's folder.
0:17
We'll name this CollectionInterface.php.
0:20
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up