-
Notifications
You must be signed in to change notification settings - Fork 12
HP-2512 Cleaned up BillingRegistryService #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
SilverFire
merged 13 commits into
hiqdev:master
from
VadymHrechukha:HP-2512_cleaned_up_billingregistryservice
Jun 9, 2025
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
04c3026
HP-2512 Cleaned up BillingRegistryService
VadymHrechukha bcff484
HP-2512 removed invalid PHPUnit test
VadymHrechukha bbf2803
HP-2512 moved Representation class to php-billing package
VadymHrechukha e797a80
HP-2512 fixed PHPUnit tests
VadymHrechukha cb9c391
HP-2512 removed PHPUnit test duplicate
VadymHrechukha 17e59dd
HP-2512 made BillingRegistryServiceTest is more readable
VadymHrechukha 0e898f7
HP-2512 tiny
VadymHrechukha 1812faa
HP-2512 removed BillingRegistryTariffServiceTest PHPUnit test because…
VadymHrechukha 48f33be
HP-2512 removed the next interfaces because this does not make any se…
VadymHrechukha 73c9162
HP-2512 tiny
VadymHrechukha a3e00ee
HP-2512 created BillingRegistryService::getPriceTypeDefinitionByPrice…
VadymHrechukha 5f0f649
HP-2512 tiny
VadymHrechukha f146bba
HP-2512 tiny
VadymHrechukha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
41 changes: 0 additions & 41 deletions
41
src/product/Application/BillingRegistryBehaviorServiceInterface.php
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
18 changes: 0 additions & 18 deletions
18
src/product/Application/BillingRegistryTariffServiseInterface.php
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
src/product/Exception/PriceTypeDefinitionNotFoundException.php
This file contains hidden or 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,10 @@ | ||
| <?php declare(strict_types=1); | ||
|
|
||
| namespace hiqdev\php\billing\product\Exception; | ||
|
|
||
| use hiqdev\php\billing\Exception\RuntimeException; | ||
|
|
||
| class PriceTypeDefinitionNotFoundException extends RuntimeException | ||
| { | ||
|
|
||
| } |
This file contains hidden or 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,39 @@ | ||
| <?php declare(strict_types=1); | ||
|
|
||
| namespace hiqdev\php\billing\product\invoice; | ||
|
|
||
| use hiqdev\php\billing\type\TypeInterface; | ||
|
|
||
| /** | ||
| * This class is made abstract intentionally. | ||
| * Because you can attach multiple representations, and thus you should distinguish them somehow. | ||
| * So, please implement you own representation. | ||
| */ | ||
| abstract class Representation implements RepresentationInterface | ||
| { | ||
| private TypeInterface $type; | ||
|
|
||
| public function __construct(private readonly string $sql) | ||
| { | ||
| if (trim($this->sql) === '') { | ||
| throw new InvalidRepresentationException('Representation SQL cannot be empty.'); | ||
| } | ||
| } | ||
|
|
||
| public function getSql(): string | ||
| { | ||
| return $this->sql; | ||
| } | ||
|
|
||
| public function setType(TypeInterface $type): RepresentationInterface | ||
| { | ||
| $this->type = $type; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
| public function getType(): TypeInterface | ||
| { | ||
| return $this->type; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.