public function __construct(TestResultCollection $testResults) { $this->testResults = $testResults->asArray(); }