SolrEngineTestModel::toSearchableArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
use Illuminate\Database\Eloquent\Model;
6
use Laravel\Scout\Searchable;
7
8
class SolrEngineTestModel extends Model
9
{
10
    use Searchable;
0 ignored issues
show
Bug introduced by
The trait Laravel\Scout\Searchable requires the property $queryCallback which is not provided by SolrEngineTestModel.
Loading history...
11
12
    /**
13
     * Get the indexable data array for the model.
14
     *
15
     * @return array
16
     */
17
    public function toSearchableArray()
18
    {
19
        return [
20
            'id'   => 1,
21
            'name' => 'Laravel Scout Solr Engine',
22
        ];
23
    }
24
}
25