Passed
Push — dev ( f65c5c...785e91 )
by 世昌
02:16
created

NullObserver   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A observe() 0 2 1
A connectDatabase() 0 2 1
1
<?php
2
3
namespace suda\database\connection\observer;
4
5
use suda\database\statement\Statement;
6
use suda\database\connection\Connection;
7
use suda\database\statement\QueryAccess;
8
9
10
class NullObserver implements Observer
11
{
12
13
    /**
14
     * @param QueryAccess $access
15
     * @param Connection $connection
16
     * @param Statement $statement
17
     * @param float $timeSpend
18
     * @param bool $result
19
     * @return void
20
     */
21
    public function observe(QueryAccess $access, Connection $connection, Statement $statement, float $timeSpend, bool $result)
22
    {
23
        // noop
24
    }
25
26
    /**
27
     * 链接数据库
28
     *
29
     * @param float $timeSpend
30
     */
31
    public function connectDatabase(float $timeSpend)
32
    {
33
        // noop
34
    }
35
}
36