OrderController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A showAction() 0 6 1
1
<?php
2
3
namespace AppBundle\Controller;
4
5
use AppBundle\Entity\Order;
6
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
7
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
8
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
9
10
class OrderController extends Controller
11
{
12
    /**
13
     * @Route(path="/order/{id}", methods="GET", name="order_show")
14
     * @ParamConverter
15
     */
16
    public function showAction(Order $order)
17
    {
18
        return $this->render('order/show.html.twig', array(
19
            'order' => $order
20
        ));
21
    }
22
}
23