-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: mudar organização de arquivos
- Loading branch information
1 parent
bf4f7f2
commit bf13686
Showing
11 changed files
with
146 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace AleBatistella\BlingErpApi\Entities\Shared\DTO; | ||
|
||
/** | ||
* Corpo da requisição. | ||
*/ | ||
abstract class Body | ||
{ | ||
/** | ||
* Constrói o objeto. | ||
* | ||
* @param array<string, string|int|\DateTimeInterface> $content | ||
*/ | ||
protected function __construct(protected array $content) | ||
{ | ||
} | ||
|
||
/** | ||
* Transforma o conteúdo em _array_. | ||
* | ||
* @return array | ||
*/ | ||
public function toArray(): array | ||
{ | ||
return isset($this->content) ? $this->content : []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace AleBatistella\BlingErpApi\Entities\Shared\DTO; | ||
|
||
/** | ||
* _Headers_ da requisição. | ||
*/ | ||
abstract class Headers | ||
{ | ||
/** | ||
* Constrói o objeto. | ||
* | ||
* @param array<string, string|int> $content | ||
*/ | ||
protected function __construct(protected array $content) | ||
{ | ||
} | ||
|
||
/** | ||
* Transforma o conteúdo em _array_. | ||
* | ||
* @return array | ||
*/ | ||
public function toArray(): array | ||
{ | ||
return isset($this->content) ? $this->content : []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
php/src/Entities/Borderos/Schema/BorderoFindSuccessResponseBody.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace AleBatistella\BlingErpApi\Entities\Borderos\Schema; | ||
|
||
use AleBatistella\BlingErpApi\Entities\Shared\DTO\Body; | ||
|
||
/** | ||
* Corpo da resposta de busca de borderôs. | ||
*/ | ||
class BorderoFindSuccessResponseBody extends Body | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters