-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDocumentCommandConfig.php
More file actions
42 lines (38 loc) · 1.16 KB
/
Copy pathDocumentCommandConfig.php
File metadata and controls
42 lines (38 loc) · 1.16 KB
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
36
37
38
39
40
41
42
<?php
declare(strict_types=1);
namespace Mindee\Cli;
/**
* Document configuration class for CLI usage.
*/
class DocumentCommandConfig
{
/**
* @var string Custom help message (currently not in use).
*/
public string $help;
/**
* @var string Document class, as defined in the Mindee\V1\Product namespace.
*/
public string $docClass;
/**
* @var boolean Whether the document supports synchronous usage.
*/
public bool $isSync;
/**
* @var boolean Whether the document supports asynchronous usage.
*/
public bool $isAsync;
/**
* @param string $help Custom help message (currently not in use).
* @param string $docClass Document class, as defined in the Mindee\V1\Product namespace.
* @param boolean $isSync Whether the document supports synchronous usage.
* @param boolean $isAsync Whether the document supports asynchronous usage.
*/
public function __construct(string $help, string $docClass, bool $isSync, bool $isAsync = false)
{
$this->help = $help;
$this->docClass = $docClass;
$this->isSync = $isSync;
$this->isAsync = $isAsync;
}
}