Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| IsSearchable | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| fulltext | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getFulltextWeight | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Cosray\Field\Capability; |
| 6 | |
| 7 | use Cosray\Schema\FulltextWeight; |
| 8 | |
| 9 | trait IsSearchable |
| 10 | { |
| 11 | public function fulltext(FulltextWeight $fulltextWeight): static |
| 12 | { |
| 13 | $this->fulltextWeight = $fulltextWeight; |
| 14 | |
| 15 | return $this; |
| 16 | } |
| 17 | |
| 18 | public function getFulltextWeight(): ?FulltextWeight |
| 19 | { |
| 20 | return $this->fulltextWeight; |
| 21 | } |
| 22 | } |