Completed
Push — fix-null-page ( 243338 )
by Akihito
01:51
created

NullPage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A onGet() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Package\Provide\Error;
6
7
use BEAR\RepositoryModule\Annotation\Cacheable;
8
use BEAR\Resource\NullRenderer;
9
use BEAR\Resource\ResourceObject;
10
11
/**
12
 * @Cacheable
13
 */
14
#[Cacheable]
15
class NullPage extends ResourceObject
16
{
17
    public function __construct()
18
    {
19
        $this->renderer = new NullRenderer();
20
    }
21
22
    public function onGet(string $required, int $optional = 0): ResourceObject
23
    {
24
        return $this;
25
    }
26
}
27