ProductRepository::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Platine\App\Model\Repository;
6
7
use Platine\Orm\EntityManager;
8
use Platine\Orm\Repository;
9
use Platine\App\Model\Entity\Product;
10
11
/**
12
* @class ProductRepository
13
* @package Platine\App\Model\Repository
14
* @extends Repository<Product>
15
*/
16
class ProductRepository extends Repository
17
{
18
    /**
19
    * Create new instance
20
    * @param EntityManager<Product> $manager
21
    */
22
    public function __construct(EntityManager $manager)
23
    {
24
        parent::__construct($manager, Product::class);
25
    }
26
}
27