Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

5.2 Creating a `DataProvider` Class

Our code for reading and writing our data file would fit, very well, inåWe can also use classes to group and encapsulate related functionality. In this lesson, we'll convert our file functions into a FileDataProvider class. a PHP class. So we'll reorganize our file code, and make adjustments to our application to use the provider pattern in object-oriented programming.

5.2 Creating a `DataProvider` Class

Back to the top