-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCommonOptions.php
More file actions
35 lines (31 loc) · 935 Bytes
/
Copy pathCommonOptions.php
File metadata and controls
35 lines (31 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
namespace Mindee\Input;
/**
* Common base for regular prediction options and workflow options.
*/
abstract class CommonOptions
{
/**
* @var boolean Whether to include the full OCR text response in compatible APIs.
* This performs a full OCR operation on the server and will increase response time.
*/
public bool $fullText;
/**
* Prediction options.
* @param boolean $fullText Whether to include the full OCR text response in compatible APIs.
* This performs a full OCR operation on the server and will increase response time.
*/
public function __construct(bool $fullText = false)
{
$this->fullText = $fullText;
}
/**
* @param boolean $fullText Whether to include the full text.
* @return $this
*/
public function setFullText(bool $fullText): PredictOptions
{
$this->fullText = $fullText;
return $this;
}
}