Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function update () { |
||
19 | if ($this->isDiff()) { |
||
1 ignored issue
–
show
|
|||
20 | /** @var Api $api */ |
||
21 | $api = $this->api; |
||
22 | $remote = $api->put($this, $this->getDiff(), ['expand' => 'this']); |
||
1 ignored issue
–
show
|
|||
23 | $this->_setData($remote); |
||
1 ignored issue
–
show
|
|||
24 | /** @var AbstractEntity $that */ |
||
25 | $that = $this; |
||
26 | $api->getCache()->add($that); |
||
27 | } |
||
28 | return $this; |
||
29 | } |
||
30 | } |