Completed
Push — master ( 36c960...526274 )
by Sam
03:50
created

ParserResults::getRawCertificate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Jalle19\CertificateParser;
4
5
use AcmePhp\Ssl\ParsedCertificate;
6
7
/**
8
 * Class ParserResults
9
 * @package Jalle19\CertificateParser
10
 */
11
class ParserResults
12
{
13
14
    /**
15
     * @var ParsedCertificate
16
     */
17
    private $parsedCertificate;
18
19
    /**
20
     * @var array
21
     */
22
    private $rawCertificate;
23
24
25
    /**
26
     * ParserResult constructor.
27
     *
28
     * @param ParsedCertificate $parsedCertificate
29
     * @param array             $rawCertificate
30
     */
31
    public function __construct(ParsedCertificate $parsedCertificate, array $rawCertificate)
32
    {
33
        $this->parsedCertificate = $parsedCertificate;
34
        $this->rawCertificate    = $rawCertificate;
35
    }
36
37
38
    /**
39
     * @return ParsedCertificate
40
     */
41
    public function getParsedCertificate()
42
    {
43
        return $this->parsedCertificate;
44
    }
45
46
47
    /**
48
     * @return array
49
     */
50
    public function getRawCertificate()
51
    {
52
        return $this->rawCertificate;
53
    }
54
55
}
56