DonationController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A donors() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace ProjetNormandie\ComptaBundle\Controller;
4
5
use ProjetNormandie\ComptaBundle\Repository\DonationRepository;
6
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
7
8
class DonationController extends AbstractController
9
{
10
    private DonationRepository $donationRepository;
11
12
    public function __construct(DonationRepository $donationRepository)
13
    {
14
        $this->donationRepository = $donationRepository;
15
    }
16
17
    /**
18
     * @return mixed
19
     */
20
    public function donors()
21
    {
22
        return $this->donationRepository->getDonors();
23
    }
24
}
25