| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 2 | public function store(Entity\Identity $entity) |
|
| 15 | { |
||
| 16 | 2 | $sql = "UPDATE {$this->table} |
|
| 17 | SET account_id = :account |
||
| 18 | WHERE identity_id = :id"; |
||
| 19 | |||
| 20 | 2 | $statement = $this->connection->prepare($sql); |
|
| 21 | |||
| 22 | 2 | $statement->bindValue(':id', $entity->getId()); |
|
| 23 | 2 | $statement->bindValue(':account', $entity->getAccountId()); |
|
| 24 | 2 | $statement->execute(); |
|
| 25 | 2 | } |
|
| 27 |