DummyObserver   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A pageToCheck() 0 4 1
A pageChecked() 0 4 1
A receiveResults() 0 4 1
1
<?php
2
namespace SiteChecker;
3
4
5
use Psr\Http\Message\ResponseInterface;
6
7
class DummyObserver implements SiteCheckObserverInterface
8
{
9
10
    /**
11
     * No additional checks here for now.
12
     *
13
     * @param \SiteChecker\Asset $url
14
     * @return bool
15
     */
16
    public function pageToCheck(Asset $url)
17
    {
18
        return true;
19
    }
20
21
22
    /**
23
     * Do nothing.
24
     *
25
     * @param \SiteChecker\Asset $asset
26
     * @param $response
27
     * @return mixed
28
     */
29
    public function pageChecked(Asset $asset, ResponseInterface $response = null)
30
    {
31
32
    }
33
34
35
    /**
36
     * Do nothing again.
37
     *
38
     * @param Asset[] $assets
39
     */
40
    public function receiveResults(array $assets)
41
    {
42
43
    }
44
}
45