| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function store(int $photoId, int $reasonId, int $reportedBy): PhotoReport |
||
| 50 | { |
||
| 51 | $this->attributes['photo_id'] = $photoId; |
||
| 52 | $this->attributes['reason_id'] = $reasonId; |
||
| 53 | $this->attributes['reported_by'] = $reportedBy; |
||
| 54 | $this->attributes['approved'] = 0; |
||
| 55 | $this->timestamps = false; |
||
| 56 | |||
| 57 | $this->save(); |
||
| 58 | |||
| 59 | return $this; |
||
| 60 | } |
||
| 61 | |||
| 72 |