FullTestResult::getTrace()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Paraunit\TestResult;
6
7
use Paraunit\TestResult\Interfaces\FailureMessageInterface;
8
use Paraunit\TestResult\Interfaces\FunctionNameInterface;
9
use Paraunit\TestResult\Interfaces\PrintableTestResultInterface;
10
use Paraunit\TestResult\Interfaces\StackTraceInterface;
11
12
/**
13
 * Class FullTestResult
14
 * @package Paraunit\TestResult
15
 */
16
class FullTestResult extends TestResultWithMessage implements PrintableTestResultInterface, FunctionNameInterface, FailureMessageInterface, StackTraceInterface
17
{
18
    /** @var string */
19
    private $trace;
20
21
    /**
22
     * FullTestResult constructor.
23
     * @param string $functionName
24
     * @param string $failureMessage
25
     * @param string $trace
26
     */
27 37
    public function __construct(string $functionName, string $failureMessage, string $trace)
28
    {
29 37
        parent::__construct($functionName, $failureMessage);
30 37
        $this->trace = $trace;
31
    }
32
33 10
    public function getTrace(): string
34
    {
35 10
        return $this->trace;
36
    }
37
}
38