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

ParserResults   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 45
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getParsedCertificate() 0 4 1
A getRawCertificate() 0 4 1
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