1 | <?php |
||
22 | class GoogleDrive extends Remote implements Collector |
||
23 | { |
||
24 | /** |
||
25 | * Google api client. |
||
26 | * |
||
27 | * @var \Google_Client |
||
28 | */ |
||
29 | private $client; |
||
30 | |||
31 | /** |
||
32 | * Parent folder id. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | private $parent; |
||
37 | |||
38 | /** |
||
39 | * Constructor. |
||
40 | * |
||
41 | * @param \phpbu\App\Backup\Target $target |
||
42 | * @param \phpbu\App\Backup\Path $path |
||
43 | * @param \Google_Client $client |
||
44 | */ |
||
45 | public function __construct(Target $target, Path $path, Google_Client $client) |
||
51 | |||
52 | /** |
||
53 | * Collect all created backups. |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | protected function collectBackups() |
||
70 | |||
71 | /** |
||
72 | * Return google api params list to find all backups. |
||
73 | * |
||
74 | * @return array |
||
75 | */ |
||
76 | private function getParams() : array |
||
86 | |||
87 | /** |
||
88 | * Return parent filter query. |
||
89 | * |
||
90 | * @return string |
||
91 | */ |
||
92 | private function getParentsFilter() : string |
||
96 | } |
||
97 |