Completed
Push — master ( da1c4e...70745c )
by Jaap
06:01
created

CustomServiceInterface   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 0
dl 0
loc 27
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A create() 0 7 1
A render() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace phpDocumentor\Reflection\Assets;
6
7
use phpDocumentor\Reflection\DocBlock\Tag;
8
use phpDocumentor\Reflection\DocBlock\Tags\Formatter;
9
use phpDocumentor\Reflection\FqsenResolver;
10
use phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod;
11
12
final class CustomServiceInterface implements Tag, StaticMethod
13
{
14
    public $formatter;
15
16
    public function getName() : string
17
    {
18
        return 'spy';
19
    }
20
21
    public static function create($body, Formatter $formatter = null)
22
    {
23
        $tag = new self();
24
        $tag->formatter = $formatter;
25
26
        return $tag;
27
    }
28
29
    public function render(?Formatter $formatter = null) : string
30
    {
31
        return $this->getName();
32
    }
33
34
    public function __toString() : string
35
    {
36
        return $this->getName();
37
    }
38
}
39