1 | <?php |
||
5 | class SearchableAttribute |
||
6 | { |
||
7 | /** @var string */ |
||
8 | protected $attribute; |
||
9 | |||
10 | /** @var bool */ |
||
11 | protected $partial; |
||
12 | |||
13 | public function __construct(string $attribute, bool $partial = true) |
||
19 | |||
20 | public static function create(string $attribute, bool $partial = true): self |
||
24 | |||
25 | public static function createExact(string $attribute): self |
||
29 | |||
30 | public static function createMany(array $attributes): array |
||
38 | |||
39 | public function getAttribute(): string |
||
43 | |||
44 | public function isPartial(): bool |
||
48 | } |
||
49 |