4646class Client
4747{
4848 // Request options
49- const ALLOWED_REQUEST_OPTIONS = [
49+ public const ALLOWED_REQUEST_OPTIONS = [
5050 Client::REQUEST_OPTION_EXTENDED_TIMEOUT ,
5151 Client::REQUEST_OPTION_HEADERS ,
5252 ];
53- const REQUEST_OPTION_EXTENDED_TIMEOUT = 'isExtendedTimeout ' ;
53+ public const REQUEST_OPTION_EXTENDED_TIMEOUT = 'isExtendedTimeout ' ;
5454 public const REQUEST_OPTION_HEADERS = 'headers ' ;
5555
5656 // Stage names
57- const DEFAULT_RETRIES_COUNT = 15 ;
58- const STAGE_IN = 'in ' ;
59- const STAGE_OUT = 'out ' ;
60- const STAGE_SYS = 'sys ' ;
61- const API_VERSION = 'v2 ' ;
57+ public const DEFAULT_RETRIES_COUNT = 15 ;
58+ public const STAGE_IN = 'in ' ;
59+ public const STAGE_OUT = 'out ' ;
60+ public const STAGE_SYS = 'sys ' ;
61+ public const API_VERSION = 'v2 ' ;
6262
63- const VERSION = '14 ' ;
63+ public const VERSION = '14 ' ;
6464
65- const FILE_PROVIDER_AWS = 'aws ' ;
66- const FILE_PROVIDER_AZURE = 'azure ' ;
67- const FILE_PROVIDER_GCP = 'gcp ' ;
65+ public const FILE_PROVIDER_AWS = 'aws ' ;
66+ public const FILE_PROVIDER_AZURE = 'azure ' ;
67+ public const FILE_PROVIDER_GCP = 'gcp ' ;
6868
6969 // Errors
70- const ERROR_CANNOT_DOWNLOAD_FILE = 'Cannot download file "%s" (ID %s) from Storage, please verify the contents of the file and that the file has not expired. ' ;
70+ public const ERROR_CANNOT_DOWNLOAD_FILE = 'Cannot download file "%s" (ID %s) from Storage, please verify the contents of the file and that the file has not expired. ' ;
7171
7272 // Token string
7373 public $ token ;
@@ -926,7 +926,7 @@ public function createTableDefinition($bucketId, $data = [])
926926 public function updateTableColumnDefinition (
927927 string $ tableId ,
928928 string $ columnName ,
929- array $ columnDefinition
929+ array $ columnDefinition,
930930 ): array {
931931 /** @var array $updatedTable */
932932 $ updatedTable = $ this ->apiPutJson ("tables/ {$ tableId }/columns/ {$ columnName }/definition " , $ columnDefinition );
@@ -1875,7 +1875,7 @@ public function uploadFile(
18751875 private function uploadFileToGcs (
18761876 array $ prepareResult ,
18771877 string $ filePath ,
1878- bool $ isPermanent
1878+ bool $ isPermanent,
18791879 ): void {
18801880 $ refreshCallableWrapper = new RefreshFileCredentialsWrapper ($ this , $ prepareResult ['id ' ]);
18811881 $ gcsUploader = new GCSUploader ([
@@ -1901,7 +1901,7 @@ private function uploadFileToGcs(
19011901 */
19021902 private function uploadFileToAbs (
19031903 array $ prepareResult ,
1904- $ filePath
1904+ $ filePath,
19051905 ) {
19061906 $ blobClient = BlobClientFactory::createClientFromConnectionString (
19071907 $ prepareResult ['absUploadParams ' ]['absCredentials ' ]['SASConnectionString ' ],
@@ -1939,7 +1939,7 @@ private function uploadFileToS3(
19391939 array $ prepareResult ,
19401940 $ filePath ,
19411941 FileUploadOptions $ newOptions ,
1942- ?FileUploadTransferOptions $ transferOptions = null
1942+ ?FileUploadTransferOptions $ transferOptions = null ,
19431943 ) {
19441944 $ uploadParams = $ prepareResult ['uploadParams ' ];
19451945 $ s3options = [
@@ -2081,7 +2081,7 @@ public function uploadSlicedFile(
20812081
20822082 private function uploadSlicedFileToAbs (
20832083 array $ prepareResult ,
2084- array $ slices
2084+ array $ slices,
20852085 ) {
20862086 $ blobClient = BlobClientFactory::createClientFromConnectionString (
20872087 $ prepareResult ['absUploadParams ' ]['absCredentials ' ]['SASConnectionString ' ],
@@ -2116,7 +2116,7 @@ private function uploadSlicedFileToS3(
21162116 array $ preparedFileResult ,
21172117 array $ slices ,
21182118 FileUploadOptions $ newOptions ,
2119- ?FileUploadTransferOptions $ transferOptions = null
2119+ ?FileUploadTransferOptions $ transferOptions = null ,
21202120 ) {
21212121 $ uploadParams = $ preparedFileResult ['uploadParams ' ];
21222122 $ options = [
@@ -3035,9 +3035,6 @@ private function log($message, $context = [])
30353035 $ this ->logger ->debug ($ message , $ context );
30363036 }
30373037
3038- /**
3039- * @param LoggerInterface $logger
3040- */
30413038 private function setLogger (LoggerInterface $ logger )
30423039 {
30433040 $ this ->logger = $ logger ;
@@ -3334,7 +3331,7 @@ private function getAuthTokenClass(array $credentials): FetchAuthTokenInterface
33343331 private array $ creds ;
33353332
33363333 public function __construct (
3337- array $ creds
3334+ array $ creds,
33383335 ) {
33393336 $ this ->creds = $ creds ;
33403337 }
0 commit comments