Completed
Push — master ( 3cc9b0...d35865 )
by Timur
02:56
created

InstallCertificateCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 26
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A usingPivateKey() 0 4 1
A usingCertificate() 0 4 1
1
<?php
2
3
namespace Laravel\Forge\Certificates\Commands;
4
5
class InstallCertificateCommand extends CertificateCommand
6
{
7
    /**
8
     * Set private key.
9
     *
10
     * @param string $privateKey
11
     *
12
     * @return static
13
     */
14
    public function usingPivateKey(string $privateKey)
15
    {
16
        return $this->attachPayload('key', $privateKey);
17
    }
18
19
    /**
20
     * Set certificate content.
21
     *
22
     * @param string $certificate
23
     *
24
     * @return static
25
     */
26
    public function usingCertificate(string $certificate)
27
    {
28
        return $this->attachPayload('certificate', $certificate);
29
    }
30
}
31