1 | <?php |
||
12 | class AttachmentProcessor extends AbstractProcessor |
||
13 | { |
||
14 | public const DEFAULT_TARGET_FIELD_VALUE = 'attachment'; |
||
15 | public const DEFAULT_INDEXED_CHARS_VALUE = 100000; |
||
16 | public const DEFAULT_IGNORE_MISSING_VALUE = false; |
||
17 | |||
18 | public function __construct(string $field) |
||
22 | |||
23 | /** |
||
24 | * Set field. |
||
25 | * |
||
26 | * @return $this |
||
27 | */ |
||
28 | public function setField(string $field): self |
||
32 | |||
33 | /** |
||
34 | * Set target_field. Default attachment. |
||
35 | * |
||
36 | * @return $this |
||
37 | */ |
||
38 | public function setTargetField(string $targetField): self |
||
42 | |||
43 | /** |
||
44 | * Set indexed_chars. Default 100000. |
||
45 | * |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function setIndexedChars(int $indexedChars): self |
||
52 | |||
53 | /** |
||
54 | * Set properties. Default all properties. Can be content, title, name, author, keywords, date, content_type, content_length, language. |
||
55 | * |
||
56 | * @return $this |
||
57 | */ |
||
58 | public function setProperties(array $properties): self |
||
62 | |||
63 | /** |
||
64 | * Set ignore_missing. Default value false. |
||
65 | * |
||
66 | * @return $this |
||
67 | */ |
||
68 | public function setIgnoreMissing(bool $ignoreMissing): self |
||
72 | } |
||
73 |