1 | <?php |
||
19 | abstract class AbstractFile extends AbstractEndpoint |
||
20 | { |
||
21 | /** |
||
22 | * File. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $file; |
||
27 | |||
28 | /** |
||
29 | * Storage. |
||
30 | * |
||
31 | * @var StorageInterface |
||
32 | */ |
||
33 | protected $storage; |
||
34 | |||
35 | /** |
||
36 | * Files. |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $files = []; |
||
41 | |||
42 | /** |
||
43 | * Init endpoint. |
||
44 | */ |
||
45 | 24 | public function __construct(string $name, string $type, string $file, StorageInterface $storage, CollectionInterface $collection, WorkflowFactory $workflow, LoggerInterface $logger, ?Iterable $resource = []) |
|
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | 8 | public function flush(bool $simulate = false): bool |
|
73 | } |
||
74 |