1 | <?php /** @noinspection PhpIncludeInspection */ |
||
24 | class PhpFile implements BuilderIOInterface |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * Generated path is directory, where signals definition will be stored. |
||
29 | * Path is relative to project root. |
||
30 | * |
||
31 | * **This directory must be writable by command line user** |
||
32 | * |
||
33 | * **This directory should be committed and distributed along with the project code** |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | public $generatedPath = 'generated'; |
||
38 | |||
39 | /** |
||
40 | * File name for file containing signals definitions, in most cases |
||
41 | * leaving default value is fine. |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | public $configFilename = 'signals-definition.php'; |
||
46 | |||
47 | /** |
||
48 | * Signal instance |
||
49 | * @var Signal |
||
50 | */ |
||
51 | private $signal = null; |
||
52 | |||
53 | public function read(): array |
||
66 | |||
67 | public function setSignal(Signal $signal) |
||
72 | |||
73 | public function write($data): bool |
||
85 | |||
86 | } |
||
87 |