PHP code example of johnkrovitch / repository
1. Go to this page and download the library: Download johnkrovitch/repository library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
johnkrovitch / repository example snippets
namespace App\Repository;
use App\Entity\Article;
use JK\Repository\AbstractRepository;
use Doctrine\Common\Collections\Collection;
class ArticleRepository extends AbstractRepository
{
public function getEntityClass(): string
{
return Article::class;
}
}