ShowAction   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 19
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A setDefaultOptions() 0 5 1
1
<?php
2
3
namespace Pim\Bundle\CustomEntityBundle\Action;
4
5
use Symfony\Component\OptionsResolver\OptionsResolver;
6
7
/**
8
 * @author    Antoine Guigan <[email protected]>
9
 * @copyright 2013 Akeneo SAS (http://www.akeneo.com)
10
 * @license   http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
11
 */
12
class ShowAction extends AbstractViewableAction
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function getType()
18
    {
19
        return 'show';
20
    }
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    protected function setDefaultOptions(OptionsResolver $resolver)
26
    {
27
        parent::setDefaultOptions($resolver);
28
        $resolver->setDefaults(['route' => 'pim_customentity_show']);
29
    }
30
}
31