Completed
Push — master ( f1a8d5...1a6045 )
by Dmitry
03:22
created

ValidationResponseFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 19
ccs 7
cts 7
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createValidation() 0 11 1
1
<?php
2
3
namespace TonicForHealth\PagerDutyClient\Validation;
4
5
/**
6
 * Class ValidationFactory.
7
 */
8
class ValidationResponseFactory
9
{
10
    /**
11
     * @param string $resourceName
12
     *
13
     * @return ValidationResponseInterface.
0 ignored issues
show
Documentation introduced by
The doc-type ValidationResponseInterface. could not be parsed: Unknown type name "ValidationResponseInterface." at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
14
     */
15 4
    public static function createValidation($resourceName)
16
    {
17 4
        $className = sprintf(
18 4
            '\%s\%s\%sValidationResponse',
19 4
            __NAMESPACE__,
20 4
            $resourceName,
21
            $resourceName
22 4
        );
23
24 4
        return new $className();
25
    }
26
}
27