Skip to content

Commit

Permalink
Add Uploadable interface to UnitPhpSdk
Browse files Browse the repository at this point in the history
Introduced a new Uploadable interface under Contracts in the UnitPhpSdk directory. This interface consists of a single method for uploading requests, which will help reduce repetitive code in individual classes/methods that require request handling. Future classes will now be able to implement this interface for consistent and simplified uploading processes.
  • Loading branch information
Pavlusha311245 committed Jan 17, 2024
1 parent 03d1c35 commit a94b1b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Contracts/Uploadable.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace UnitPhpSdk\Contracts;

use UnitPhpSdk\Http\UnitRequest;

interface Uploadable
{
public function upload(UnitRequest $request);
}

0 comments on commit a94b1b9

Please sign in to comment.