Skip to content
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

add proxy generators #10

Merged
merged 2 commits into from
Aug 16, 2023
Merged

add proxy generators #10

merged 2 commits into from
Aug 16, 2023

Conversation

withinboredom
Copy link
Contributor

@withinboredom withinboredom commented Aug 16, 2023

Adds two proxy generators:

  1. an OrchestrationProxy that can generate calls/signals and passes PHP-type-hints.
  2. a ClientProxy that throws exceptions unless a method is marked 'Pure'.

Closes #9

@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Patch coverage: 86.02% and project coverage change: +2.99% 🎉

Comparison is base (d323389) 31.77% compared to head (ae4f4ba) 34.76%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #10      +/-   ##
============================================
+ Coverage     31.77%   34.76%   +2.99%     
- Complexity      796      826      +30     
============================================
  Files            71       75       +4     
  Lines          2433     2557     +124     
============================================
+ Hits            773      889     +116     
- Misses         1660     1668       +8     
Files Changed Coverage Δ
src/OrchestrationContext.php 64.97% <0.00%> (+2.58%) ⬆️
src/Proxy/Generator.php 65.30% <65.30%> (ø)
src/Proxy/ClientProxy.php 100.00% <100.00%> (ø)
src/Proxy/ImpureException.php 100.00% <100.00%> (ø)
src/Proxy/OrchestratorProxy.php 100.00% <100.00%> (ø)
src/State/OrchestrationHistory.php 76.74% <100.00%> (+0.18%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@withinboredom withinboredom merged commit a812116 into main Aug 16, 2023
3 checks passed
@withinboredom withinboredom deleted the snapshots branch August 16, 2023 18:57
withinboredom added a commit that referenced this pull request Mar 20, 2024
* add proxy generators

* add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow supporting snapshots
1 participant