AbstractSelectorAssertion::setBy()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 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
}