1 00:00:00,520 --> 00:00:02,451 First let's clean up our display. 2 00:00:10,200 --> 00:00:15,510 Now to use the display recipe method, we call it just like a regular function. 3 00:00:20,510 --> 00:00:25,460 The only difference is that we first need to reference the object it belongs to. 4 00:00:28,380 --> 00:00:33,200 We do this just like we access the property, the name of the object, 5 00:00:33,200 --> 00:00:37,490 followed by the dash in the greater than, which make up the single arrow. 6 00:00:37,490 --> 00:00:40,780 We can then use echo to display this method to the screen. 7 00:00:42,420 --> 00:00:46,830 Before we run the script, we haven't set our titles for our recipes yet. 8 00:00:46,830 --> 00:00:47,805 So let's do that. 9 00:01:13,667 --> 00:01:15,427 Now let's display both recipes, 10 00:01:23,906 --> 00:01:25,330 And run our script again. 11 00:01:28,870 --> 00:01:30,380 In the console we see. 12 00:01:30,380 --> 00:01:33,330 My first recipe by Grandma Holligan. 13 00:01:33,330 --> 00:01:35,450 My second recipe by Betty Crocker. 14 00:01:36,690 --> 00:01:40,210 In this section we've completed our first jaunt into the world 15 00:01:40,210 --> 00:01:41,720 of object oriented php.. 16 00:01:41,720 --> 00:01:46,970 By learning about classes, properties, methods, and objects. 17 00:01:46,970 --> 00:01:49,590 We've just scratched the surface of what we can do. 18 00:01:49,590 --> 00:01:52,220 So let's keep exploring our new paradigm 19 00:01:52,220 --> 00:01:56,800 by building out some of the actual recipes and learning some magic along the way.