1 | <?php |
||||
2 | |||||
3 | namespace Axsor\PhpIPAM\Models; |
||||
4 | |||||
5 | use Axsor\PhpIPAM\Facades\PhpIPAM; |
||||
6 | |||||
7 | class Subnet extends Model |
||||
8 | { |
||||
9 | public function update() |
||||
10 | { |
||||
11 | return PhpIPAM::subnetUpdate($this, $this->except($this->getExceptKeys())); |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||
12 | } |
||||
13 | |||||
14 | public function drop() |
||||
15 | { |
||||
16 | return PhpIPAM::subnetDrop($this); |
||||
0 ignored issues
–
show
The method
subnetDrop() 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
![]() |
|||||
17 | } |
||||
18 | |||||
19 | public function usage() |
||||
20 | { |
||||
21 | return PhpIPAM::subnetUsage($this); |
||||
0 ignored issues
–
show
The method
subnetUsage() 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
![]() |
|||||
22 | } |
||||
23 | |||||
24 | public function freeAddress() |
||||
25 | { |
||||
26 | return PhpIPAM::subnetFreeAddress($this); |
||||
0 ignored issues
–
show
The method
subnetFreeAddress() 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
![]() |
|||||
27 | } |
||||
28 | |||||
29 | public function slaves() |
||||
30 | { |
||||
31 | return PhpIPAM::subnetSlaves($this); |
||||
0 ignored issues
–
show
The method
subnetSlaves() 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
![]() |
|||||
32 | } |
||||
33 | |||||
34 | public function slavesRecursive() |
||||
35 | { |
||||
36 | return PhpIPAM::subnetSlavesRecursive($this); |
||||
0 ignored issues
–
show
The method
subnetSlavesRecursive() 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
![]() |
|||||
37 | } |
||||
38 | |||||
39 | public function addresses() |
||||
40 | { |
||||
41 | return PhpIPAM::subnetAddresses($this); |
||||
0 ignored issues
–
show
The method
subnetAddresses() 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
![]() |
|||||
42 | } |
||||
43 | |||||
44 | public function ip(string $ip) |
||||
45 | { |
||||
46 | return PhpIPAM::subnetIp($this, $ip); |
||||
0 ignored issues
–
show
The method
subnetIp() 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
![]() |
|||||
47 | } |
||||
48 | |||||
49 | public function freeSubnet(int $mask) |
||||
50 | { |
||||
51 | return PhpIPAM::subnetFreeSubnet($this, $mask); |
||||
0 ignored issues
–
show
The method
subnetFreeSubnet() 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
![]() |
|||||
52 | } |
||||
53 | |||||
54 | public function freeSubnets(int $mask) |
||||
55 | { |
||||
56 | return PhpIPAM::subnetFreeSubnets($this, $mask); |
||||
0 ignored issues
–
show
The method
subnetFreeSubnets() 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
![]() |
|||||
57 | } |
||||
58 | |||||
59 | public function resize(int $mask) |
||||
60 | { |
||||
61 | return PhpIPAM::subnetResize($this, $mask); |
||||
0 ignored issues
–
show
The method
subnetResize() 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
![]() |
|||||
62 | } |
||||
63 | |||||
64 | public function split($numero) |
||||
65 | { |
||||
66 | return PhpIPAM::subnetSplit($this, $numero); |
||||
0 ignored issues
–
show
The method
subnetSplit() 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
![]() |
|||||
67 | } |
||||
68 | |||||
69 | public function truncate() |
||||
70 | { |
||||
71 | return PhpIPAM::subnetTruncate($this); |
||||
0 ignored issues
–
show
The method
subnetTruncate() 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
![]() |
|||||
72 | } |
||||
73 | |||||
74 | public function getExceptKeys() |
||||
75 | { |
||||
76 | return [ |
||||
77 | 'id', |
||||
78 | 'ip', |
||||
79 | 'editDate', |
||||
80 | 'lastSeen', |
||||
81 | 'lastScan', |
||||
82 | 'lastDiscovery', |
||||
83 | 'calculation', |
||||
84 | ]; |
||||
85 | } |
||||
86 | } |
||||
87 |