Skip to content

Commit cb20ce1

Browse files
committed
refactor: swaps file parameter order
1 parent f1ace57 commit cb20ce1

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/Files/DTO/InlineFile.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ class InlineFile implements FileInterface, WithJsonSchemaInterface
3030
*
3131
* @since n.e.x.t
3232
*
33-
* @param string $mimeType The MIME type of the file.
3433
* @param string $base64Data The base64-encoded file data.
34+
* @param string $mimeType The MIME type of the file.
3535
*/
36-
public function __construct(string $mimeType, string $base64Data)
36+
public function __construct(string $base64Data, string $mimeType)
3737
{
38-
$this->mimeType = $mimeType;
3938
$this->base64Data = $base64Data;
39+
$this->mimeType = $mimeType;
4040
}
4141

4242
/**

src/Files/DTO/LocalFile.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ class LocalFile implements FileInterface, WithJsonSchemaInterface
3030
*
3131
* @since n.e.x.t
3232
*
33-
* @param string $mimeType The MIME type of the file.
3433
* @param string $path The local filesystem path to the file.
34+
* @param string $mimeType The MIME type of the file.
3535
*/
36-
public function __construct(string $mimeType, string $path)
36+
public function __construct(string $path, string $mimeType)
3737
{
38-
$this->mimeType = $mimeType;
3938
$this->path = $path;
39+
$this->mimeType = $mimeType;
4040
}
4141

4242
/**

src/Files/DTO/RemoteFile.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ class RemoteFile implements FileInterface, WithJsonSchemaInterface
3030
*
3131
* @since n.e.x.t
3232
*
33-
* @param string $mimeType The MIME type of the file.
3433
* @param string $url The URL to the remote file.
34+
* @param string $mimeType The MIME type of the file.
3535
*/
36-
public function __construct(string $mimeType, string $url)
36+
public function __construct(string $url, string $mimeType)
3737
{
38-
$this->mimeType = $mimeType;
3938
$this->url = $url;
39+
$this->mimeType = $mimeType;
4040
}
4141

4242
/**

0 commit comments

Comments
 (0)