Completed
Pull Request — develop (#22)
by Carlo
02:32
created

DriverCurrentUrl   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 12
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
getDriver() 0 1 ?
A getDriverCurrentUrl() 0 4 1
1
<?php
2
3
namespace Magefix\Plugin;
4
5
/**
6
 * Class DriverCurrentUrl
7
 * 
8
 * @package Magefix\Plugin
9
 * @author  Carlo Tasca <[email protected]>
10
 */
11
trait DriverCurrentUrl
12
{
13
    abstract public function getDriver();
14
15
    /**
16
     * @return mixed
17
     */
18
    public function getDriverCurrentUrl()
19
    {
20
        return $this->getDriver()->getCurrentUrl();
21
    }
22
}
23