Completed
Push — master ( 76a69d...7b2c48 )
by Alex
03:03 queued 10s
created

Address::drop()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Axsor\PhpIPAM\Models;
4
5
use Axsor\PhpIPAM\Facades\PhpIPAM;
6
7
class Address extends Model
8
{
9
    public function ping()
10
    {
11
        return PhpIPAM::ping($this);
0 ignored issues
show
Bug introduced by
The method ping() does not exist on Axsor\PhpIPAM\Facades\PhpIPAM. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

11
        return PhpIPAM::/** @scrutinizer ignore-call */ ping($this);
Loading history...
12
    }
13
14
    public function update()
15
    {
16
        return PhpIPAM::addressUpdate($this, $this->except($this->getExceptKeys()));
0 ignored issues
show
Bug introduced by
The method addressUpdate() does not exist on Axsor\PhpIPAM\Facades\PhpIPAM. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

16
        return PhpIPAM::/** @scrutinizer ignore-call */ addressUpdate($this, $this->except($this->getExceptKeys()));
Loading history...
17
    }
18
19
    public function drop()
20
    {
21
        return PhpIPAM::addressDrop($this);
0 ignored issues
show
Bug introduced by
The method addressDrop() does not exist on Axsor\PhpIPAM\Facades\PhpIPAM. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

21
        return PhpIPAM::/** @scrutinizer ignore-call */ addressDrop($this);
Loading history...
22
    }
23
24
    public function getExceptKeys()
25
    {
26
        return [
27
            'ip',
28
            'subnetId',
29
            'editDate',
30
            'lastSeen',
31
            'methods',
32
            'link',
33
        ];
34
    }
35
}
36