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

Exo3 #18

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Exo3 #18

wants to merge 4 commits into from

Conversation

LeoGrouet
Copy link

Here my solution to the exercice 3.

At first, i looked at the terminal error to resolve the issues.
Then i had to create a function to determined the balance between the users.

To find the solution, i copied the index as test.php and add small unit tests (like echo) in it to let me know what kind of data was used to add and or subtract amount in the balance, and when they was called.

I removed this "test.php" to get a cleaner code.

Then i unify the classes by writing down the exact same things in one and in the other, except for the getType().

The output doesn't leave much room to add or delete file so i did it this way.

Hope it's ok :)

@LeoGrouet LeoGrouet requested a review from a team as a code owner February 20, 2024 15:09
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.

1 participant