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 | /** |
||
19 | * Attachment constructor. |
||
20 | */ |
||
21 | public function __construct(string $field) |
||
25 | |||
26 | /** |
||
27 | * Set field. |
||
28 | * |
||
29 | * @return $this |
||
30 | */ |
||
31 | public function setField(string $field): self |
||
35 | |||
36 | /** |
||
37 | * Set target_field. Default attachment. |
||
38 | * |
||
39 | * @return $this |
||
40 | */ |
||
41 | public function setTargetField(string $targetField): self |
||
45 | |||
46 | /** |
||
47 | * Set indexed_chars. Default 100000. |
||
48 | * |
||
49 | * @return $this |
||
50 | */ |
||
51 | public function setIndexedChars(int $indexedChars): self |
||
55 | |||
56 | /** |
||
57 | * Set properties. Default all properties. Can be content, title, name, author, keywords, date, content_type, content_length, language. |
||
58 | * |
||
59 | * @return $this |
||
60 | */ |
||
61 | public function setProperties(array $properties): self |
||
65 | |||
66 | /** |
||
67 | * Set ignore_missing. Default value false. |
||
68 | * |
||
69 | * @return $this |
||
70 | */ |
||
71 | public function setIgnoreMissing(bool $ignoreMissing): self |
||
75 | } |
||
76 |