Completed
Push — master ( d89681...8e123d )
by Andreas
20s
created

Error::getConference()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * Copyright (c) Andreas Heigl<[email protected]
5
 *
6
 * Licensed under the MIT License. See LICENSE.md file in the project root
7
 * for full license information.
8
 */
9
10
namespace Callingallpapers\ResultKeeper;
11
12
use Throwable;
13
14 View Code Duplication
class Error implements Result
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
15
{
16
    private $conference;
17
18
    private $throwable;
19
20
    public function __construct(string $conference, Throwable $throwable)
21
    {
22
        $this->conference = $conference;
23
        $this->throwable  = $throwable;
24
    }
25
26
    public function getMessage() : string
27
    {
28
        return $this->throwable->getMessage();
29
    }
30
31
    public function getThrowable() : Throwable
32
    {
33
        return $this->throwable;
34
    }
35
36
    public function getConference(): string
37
    {
38
        return $this->conference;
39
    }
40
}
41