Completed
Push — master ( 6b0cbf...ef4cd6 )
by Lars
02:56
created

SimpleHtmlDomNodeBlank   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 73
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 7
c 2
b 1
f 0
lcom 0
cbo 0
dl 0
loc 73
ccs 2
cts 2
cp 1
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __call() 0 4 1
A __get() 0 4 1
A __invoke() 0 4 1
A __toString() 0 4 1
A innerHtml() 0 4 1
A find() 0 4 1
A text() 0 4 1
1
<?php
2
3
namespace voku\helper;
4
5
/**
6
 * Class SimpleHtmlDomNodeBlank
7
 *
8
 * @package voku\helper
9
 *
10
 * @property-read string outertext Get dom node's outer html
11
 * @property-read string plaintext Get dom node's plain text
12
 */
13
class SimpleHtmlDomNodeBlank extends \ArrayObject implements SimpleHtmlDomNodeInterface
14
{
15
  /**
16
   * @param $name
17
   *
18
   * @return string
19
   */
20 2
  public function __get($name)
21
  {
22 2
    return '';
23
  }
24
25
  /**
26
   * @param $name
27
   * @param $arguments
28
   *
29
   * @return string
30
   */
31
  public function __call($name, $arguments)
32
  {
33
    return null;
34
  }
35
36
  /**
37
   * @param string $selector
38
   * @param int    $idx
39
   *
40
   * @return SimpleHtmlDom|SimpleHtmlDomNode|null
41
   */
42
  public function __invoke($selector, $idx = null)
43
  {
44
    return null;
45
  }
46
47
  /**
48
   * @return string
49
   */
50
  public function __toString()
51
  {
52
    return '';
53
  }
54
55
  /**
56
   * Get html of Elements
57
   *
58
   * @return string
59
   */
60
  public function innerHtml()
61
  {
62
    return '';
63
  }
64
65
  /**
66
   * @param string $selector
67
   * @param null   $idx
68
   *
69
   * @return null
70
   */
71
  public function find($selector, $idx = null)
72
  {
73
    return null;
74
  }
75
76
  /**
77
   * Get plain text
78
   *
79
   * @return string
80
   */
81
  public function text()
82
  {
83
    return '';
84
  }
85
}
86