Passed
Push — master ( 90d55d...0e16d5 )
by Carlos C
03:42 queued 10s
created

OpenSSLPropertyTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 23
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getOpenSSL() 0 3 1
A setOpenSSL() 0 3 1
1
<?php
2
namespace CfdiUtils\OpenSSL;
3
4
trait OpenSSLPropertyTrait
5
{
6
    /**
7
     * Variable to store the instance of OpenSSL
8
     * You must set this property on the constructor of the class that uses this property,
9
     * otherwise getOpenSSL will fail
10
     *
11
     * To get this property is recommended to use getOpenSSL
12
     * To set this property is recommended to use setOpenSSL
13
     *
14
     * @var OpenSSL
15
     * @internal
16
     */
17
    private $openSSL;
18
19 77
    public function getOpenSSL(): OpenSSL
20
    {
21 77
        return $this->openSSL;
22
    }
23
24 76
    protected function setOpenSSL(OpenSSL $openSSL)
25
    {
26 76
        $this->openSSL = $openSSL;
27 76
    }
28
}
29