| Conditions | 4 | 
| Paths | 8 | 
| Total Lines | 12 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 4 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 44 | 1 | public function fill(array $data): Book  | 
            |
| 45 |     { | 
            ||
| 46 | 1 |         if (isset($data['title'])) { | 
            |
| 47 | 1 | $this->title = (string)$data['title'];  | 
            |
| 48 | }  | 
            ||
| 49 | 1 |         if (isset($data['summary'])) { | 
            |
| 50 | 1 | $this->summary = (string)$data['summary'];  | 
            |
| 51 | }  | 
            ||
| 52 | 1 |         if (isset($data['authorId'])) { | 
            |
| 53 | 1 | $this->authorId = $data['authorId'];  | 
            |
| 54 | }  | 
            ||
| 55 | 1 | return $this;  | 
            |
| 56 | }  | 
            ||
| 77 |