| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait Save |
||
| 10 | { |
||
| 11 | use Create { create as protected saveNew; } |
||
| 12 | use Update { update as protected saveExisting; } |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param \Swis\JsonApi\Client\Interfaces\ItemInterface $item |
||
| 16 | * @param array $parameters |
||
| 17 | * |
||
| 18 | * @return \Swis\JsonApi\Client\Interfaces\DocumentInterface |
||
| 19 | */ |
||
| 20 | public function save(ItemInterface $item, array $parameters = []) |
||
| 29 |