Completed
Push — master ( 9d457f...574e8f )
by Jesse
02:48
created

BlindObserver::hydrating()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
eloc 0
nc 1
nop 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Stratadox\Hydrator;
6
7
/**
8
 * Null object for *not* observing the hydration process.
9
 *
10
 * @package Stratadox\Hydrate
11
 * @author Stratadox
12
 */
13
final class BlindObserver implements ObservesHydration
14
{
15
    /**
16
     * Creates a new blind observer.
17
     *
18
     * @return self
19
     */
20
    public static function add() : self
21
    {
22
        return new self;
23
    }
24
25
    /** @inheritdoc */
26
    public function hydrating($theInstance) : void
27
    {
28
        // No operation.
29
    }
30
}
31