| Conditions | 4 | 
| Paths | 5 | 
| Total Lines | 19 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 46 | public function setUser(?UserInterface $user): void  | 
            ||
| 47 |     { | 
            ||
| 48 |         if ($this->user === $user) { | 
            ||
| 49 | return;  | 
            ||
| 50 | }  | 
            ||
| 51 | |||
| 52 | \Webmozart\Assert\Assert::nullOrIsInstanceOf($user, AppUserInterface::class);  | 
            ||
| 53 | |||
| 54 | $previousUser = $this->user;  | 
            ||
| 55 | $this->user = $user;  | 
            ||
| 56 | |||
| 57 |         if ($previousUser instanceof AppUserInterface) { | 
            ||
| 58 | $previousUser->setCustomer(null);  | 
            ||
| 59 | }  | 
            ||
| 60 | |||
| 61 |         if ($user instanceof AppUserInterface) { | 
            ||
| 62 | $user->setCustomer($this);  | 
            ||
| 63 | }  | 
            ||
| 64 | }  | 
            ||
| 65 | }  | 
            ||
| 66 |