ShowPage::getDefinedElements()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Tests\Lakion\CmsPlugin\Behat\Page\Admin\StringBlock;
4
5
use Sylius\Behat\Page\SymfonyPage;
6
7
class ShowPage extends SymfonyPage implements ShowPageInterface
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function getBlockContents()
13
    {
14
        return $this->getElement('block')->getHtml();
15
    }
16
17
    /**
18
     * {@inheritdoc}
19
     */
20
    protected function getDefinedElements()
21
    {
22
        return array_merge(parent::getDefinedElements(), [
23
            'block' => '#lakion_cms_block_preview',
24
        ]);
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function getRouteName()
31
    {
32
        return 'lakion_cms_admin_string_block_show';
33
    }
34
}
35