Completed
Push — master ( 432186...3af16c )
by Chris
04:32 queued 01:29
created

Setters   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 3
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 3
cbo 0
dl 0
loc 19
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setMD5() 0 4 1
A setSHA1() 0 4 1
A setCSR() 0 6 1
1
<?php
2
3
namespace Xigen\Traits\ComodoDecodeCSR;
4
5
trait Setters
6
{
7 2
    public function setMD5($MD5)
8
    {
9 2
        return $this->MD5 = $MD5;
1 ignored issue
show
Bug introduced by
The property MD5 does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
10
    }
11
12 2
    public function setSHA1($SHA1)
13
    {
14 2
        return $this->SHA1 = $SHA1;
1 ignored issue
show
Bug introduced by
The property SHA1 does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
15
    }
16
17 3
    public function setCSR($CSR)
18
    {
19
        //TODO Check that this is a valid CSR
20 3
        $this->CSR = $CSR;
1 ignored issue
show
Bug introduced by
The property CSR does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
21 3
        $this->Form['csr'] = $CSR;
1 ignored issue
show
Bug introduced by
The property Form does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
22 3
    }
23
}
24