Test Failed
Push — master ( 8a0d16...cb6ca3 )
by masoud
11:09
created

Hardware   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 1
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHardware() 0 2 1
1
<?php
2
3
4
namespace FNDEV\vShpare\Api\VM\Resources\Hardware;
5
6
7
use FNDEV\vShpare\Api\VM\Abstracts\InitClass;
8
use FNDEV\vShpare\Api\VM\Traits\MOID;
9
use FNDEV\vShpare\ApiResponse;
10
11
class Hardware extends InitClass
12
{
13
    use MOID;
0 ignored issues
show
Bug introduced by
The trait FNDEV\vShpare\Api\VM\Traits\MOID requires the property $moid which is not provided by FNDEV\vShpare\Api\VM\Resources\Hardware\Hardware.
Loading history...
14
    public function getHardware($moid=null){
15
        return ApiResponse::BodyResponse($this->HttpClient->get("vm/{$this->getMoid($moid)}/hardware"));
16
    }
17
}