Completed
Push — master ( d79ecd...9b33ca )
by Davide
12:48
created

WebsiteController::calculate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace DavidePastore\CodiceFiscaleRest\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
6
use Symfony\Component\HttpFoundation\Response;
7
use Symfony\Component\Routing\Annotation\Route;
8
9
/**
10
 * Class WebsiteController
11
 */
12
class WebsiteController extends AbstractController
13
{
14
15
    /**
16
     * Home page
17
     * @Route("/", name="homepage")
18
     */
19
    public function calculate(): Response
20
    {
21
        return $this->render('index.twig');
22
    }
23
24
    /**
25
     * Documentazione
26
     * @Route("/documentazione", name="documentazione")
27
     */
28
    public function documentazione(): Response
29
    {
30
        return $this->render('documentazione.twig');
31
    }
32
33
    /**
34
     * Prova
35
     * @Route("/prova", name="prova")
36
     */
37
    public function prova(): Response
38
    {
39
        return $this->render('prova.twig');
40
    }
41
}
42