Description:
Class NutritionPDO::class exists in the App/Database/ directory and needs additional features.
Create a quickFetch() public method which will be able to fetch data based on the provided SQL query string and return an array with results or null instead.
Create an executeQuery method which will execute a prepared statement based on a query and optional query array with values for prepare statement holders.
Modify existing method return type to be NutritionPDO which will aid in using custom additional custom methods.
Description: Class
NutritionPDO::class
exists in theApp/Database/
directory and needs additional features.Create a
quickFetch()
public method which will be able to fetch data based on the provided SQL query string and return an array with results or null instead.Create an
executeQuery
method which will execute a prepared statement based on a query and optional query array with values for prepare statement holders.Modify existing method return type to be
NutritionPDO
which will aid in using custom additional custom methods.