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.