DummyObserver::pageToCheck()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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