Completed
Pull Request — master (#36)
by Daniel
03:57
created

NullType::createView()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\ContentType\Standard\View;
6
7
use Psi\Component\ContentType\View\View;
8
use Psi\Component\ContentType\View\ViewInterface;
9
use Symfony\Component\OptionsResolver\OptionsResolver;
10
use Psi\Component\ContentType\View\ViewFactory;
11
use Psi\Component\ContentType\View\TypeInterface;
12
13
class NullType implements TypeInterface
14
{
15
    public function createView(ViewFactory $factory, $data, array $options): ViewInterface
16
    {
17
        return new NullView();
18
    }
19
20
    public function configureOptions(OptionsResolver $options)
21
    {
22
    }
23
}
24
25