Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function update () { |
||
20 | if ($this->isDiff()) { |
||
21 | /** @var array $remote */ |
||
22 | $remote = $this->api->put($this, $this->toArray(true), ['expand' => 'this']); |
||
23 | $this->_setData($remote); |
||
24 | /** @var AbstractEntity $that */ |
||
25 | $that = $this; |
||
26 | $this->api->getPool()->add($that); |
||
27 | } |
||
28 | return $this; |
||
29 | } |
||
30 | } |