AbstractSelectorAssertion   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 46
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setSelector() 0 5 1
A setBy() 0 5 1
A getBy() 0 4 1
A getSelector() 0 4 1
1
<?php
2
3
namespace Magium\Assertions\Element;
4
5
use Magium\Assertions\AbstractAssertion;
6
7
abstract class AbstractSelectorAssertion extends AbstractAssertion
8
{
9
10
    protected $selector;
11
12
    protected $by;
13
14
    /**
15
     * @param $selector
16
     * @return $this
17
     */
18
19
    public function setSelector($selector)
20
    {
21
        $this->selector = $selector;
22
        return $this;
23
    }
24
25
    /**
26
     * @param $by
27
     * @return $this
28
     */
29
30
    public function setBy($by)
31
    {
32
        $this->by = $by;
33
        return $this;
34
    }
35
36
    /**
37
     * @return mixed
38
     */
39
    public function getBy()
40
    {
41
        return $this->by;
42
    }
43
44
    /**
45
     * @return mixed
46
     */
47
    public function getSelector()
48
    {
49
        return $this->selector;
50
    }
51
52
}