Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
24 | 1 | public function update(Variable $variable): Variable |
|
25 | { |
||
26 | 1 | $this->validateIsNotNewEntity($variable->getId()); |
|
27 | 1 | return $this->doUpdate( |
|
28 | 1 | self::ENDPOINT."/{$variable->getId()}", |
|
29 | $variable, |
||
30 | function ($response) use ($variable) { |
||
31 | 1 | return (new VariableMapper())->map($variable, $response); |
|
32 | 1 | } |
|
33 | ); |
||
34 | } |
||
35 | |||
67 |