| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function createContact(string $name, DateTimeInterface $birthDate, ?UploadedFileInterface $photo = null, ?Contact $manager = null, array $relations= []): Contact |
||
| 22 | { |
||
| 23 | $contact = new Contact($name); |
||
| 24 | if ($photo) { |
||
| 25 | $contact->setPhoto($photo); |
||
| 26 | } |
||
| 27 | $contact->setBirthDate($birthDate); |
||
| 28 | $contact->setManager($manager); |
||
| 29 | $contact->setRelations($relations); |
||
| 30 | return $contact; |
||
| 31 | } |
||
| 33 |