Completed
Pull Request — master (#177)
by Kevin
02:34
created

TitleTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setTitle() 0 4 1
A assertSelector() 0 5 1
assert() 0 1 ?
1
<?php
2
3
namespace Magium\Assertions\Browser;
4
5
trait TitleTrait
6
{
7
8
    protected $title;
9
10
    public function setTitle($title)
11
    {
12
        $this->title = $title;
13
    }
14
15
    public function assertSelector($title)
16
    {
17
        $this->title = $title;
18
        $this->assert();
19
    }
20
21
    abstract function assert();
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
22
23
}
24