Completed
Push — 1.4-new-behat ( e12fcf...33b548 )
by Kamil
27:34
created

MainPage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 12
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getContent() 0 4 1
A getRouteName() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Sylius\Behat\Page\TestPlugin;
6
7
use FriendsOfBehat\PageObjectExtension\Page\SymfonyPage;
8
9
final class MainPage extends SymfonyPage implements MainPageInterface
10
{
11
    public function getContent(): string
12
    {
13
        return $this->getDocument()->find('css', 'body')->getText();
14
    }
15
16
    public function getRouteName(): string
17
    {
18
        return 'sylius_test_plugin_main';
19
    }
20
}
21