TraitedFixture   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMessage() 0 4 1
A call() 0 4 1
1
<?php
2
3
namespace Vvval\Spiral\Validation\Tests\Checkers\Fixtures;
4
5
use Vvval\Spiral\Validation\Checkers\Traits\CustomMessagesTrait;
6
7
class TraitedFixture
8
{
9
    use CustomMessagesTrait;
10
11
    const MESSAGE = 'trait message';
12
13
    /**
14
     * @param string $method
15
     *
16
     * @return string
17
     */
18
    public function getMessage(string $method): string
0 ignored issues
show
Unused Code introduced by
The parameter $method is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
19
    {
20
        return self::MESSAGE;
21
    }
22
23
    /**
24
     * @param string|null $message
25
     * @param string      $method
26
     *
27
     * @return string
28
     */
29
    public function call(string $message = null, string $method)
30
    {
31
        return $this->makeMessage($message, $method);
32
    }
33
}