PHP Classes

File: Src/read.php

Recommend this page to a friend!
  Classes of Ogbemudia Osayawe   PHP TDD Tutorial Bug Report Application   Src/read.php   Download  
File: Src/read.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP TDD Tutorial Bug Report Application
Bug report application to show the TDD approach
Author: By
Last change:
Date: 2 years ago
Size: 323 bytes
 

Contents

Class file image Download
<?php declare( strict_types=1 );

use
App\Repository\BugReportRepository;
use
App\Helpers\DbQueryBuilderFactory;
use
App\Database\QueryBuilder;

/** @var QueryBuilder $queryBuilder */
$queryBuilder = DbQueryBuilderFactory::make();
$repository = new BugReportRepository($queryBuilder);

$bugReports = $repository->findAll();