ShowAction::setDefaultOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 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