| 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 | * Writable stream (destination endpoint). |
||
| 44 | * |
||
| 45 | * @var resource |
||
| 46 | */ |
||
| 47 | protected $writable; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Init endpoint. |
||
| 51 | */ |
||
| 52 | 21 | public function __construct(string $name, string $type, string $file, StorageInterface $storage, CollectionInterface $collection, WorkflowFactory $workflow, LoggerInterface $logger, ?Iterable $resource = []) |
|
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | 5 | public function flush(bool $simulate = false): bool |
|
| 78 | } |
||
| 79 |