beyondcode /
laravel-query-detector
| 1 | <?php |
||
| 2 | |||
| 3 | namespace BeyondCode\QueryDetector\Events; |
||
| 4 | |||
| 5 | use Illuminate\Queue\SerializesModels; |
||
| 6 | use Illuminate\Support\Collection; |
||
| 7 | |||
| 8 | class QueryDetected { |
||
| 9 | use SerializesModels; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 10 | |||
| 11 | /** @var Collection */ |
||
| 12 | protected $queries; |
||
| 13 | |||
| 14 | public function __construct(Collection $queries) |
||
| 15 | { |
||
| 16 | $this->queries = $queries; |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return Collection |
||
| 21 | */ |
||
| 22 | public function getQueries() |
||
| 23 | { |
||
| 24 | return $this->queries; |
||
| 25 | } |
||
| 26 | } |
||
| 27 |