I recently realized my currently approach on a project would greatly improve with the use of better/more descriptive objects. As such, I realized that I want an array of obj
Just create another public variable for matches. Then, you can initialize it as an array in the constructor method.
class LogFile
{
public $formattedMatches;
public $pathToLog;
public $matchCount;
public $matches;
function __construct() {
$matches=array();
//Load $matches with whatever here
}
}