Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Access Modifiers 6:04
- Access 3 questions
- Associative Arrays 7:36
- Cleaning Up the Class 2:58
- Accessing Arrays 5 objectives
- Adding Getters and Setters 8:32
- Ready Get Set Go 5 questions
- Static Methods 4:52
- Recipe Details 3:16
- Separating Methods 2:43
- Static 4 objectives
- Magic Methods 5:05
- Magic Constants 6:14
- All About the Magic 5 questions
- Populating the Recipes 3:15
- Controlling the Class 3 objectives

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Object Oriented PHP offers several "magic methods". The "magic" comes from the fact that they are triggered by an action instead of called directly. We’ll demonstrate the power of several of the magic methods you’ll encounter most often.
Documentation
Challenges
- Add more items to the __construct method.
- Add a different Magic Method to your class
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
jlampstack
23,932 Points1 Answer
-
ilanaguttman
2,700 Points1 Answer
-
Diego Hernandez
11,468 Points2 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
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