Skip to content

New currency#13

Open
adeptofvoltron wants to merge 7 commits intopurringCatFoundation:masterfrom
adeptofvoltron:new_currency
Open

New currency#13
adeptofvoltron wants to merge 7 commits intopurringCatFoundation:masterfrom
adeptofvoltron:new_currency

Conversation

@adeptofvoltron
Copy link
Member

dolarcat

@adeptofvoltron adeptofvoltron self-assigned this Mar 27, 2017

/**
* AbstractCurrency constructor.
* @param null $quality
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type ?

{
if (false === empty($subUnitQuality)) {
$this->subUnitQuality = $subUnitQuality;
} elseif (false === empty($quality)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange if-else code block. What if both was not empty ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

than I throw an exception

Copy link
Member Author

@adeptofvoltron adeptofvoltron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pradzikowski ok. you can check it now

{
if (false === empty($subUnitQuality)) {
$this->subUnitQuality = $subUnitQuality;
} elseif (false === empty($quality)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

than I throw an exception

@adeptofvoltron adeptofvoltron removed the WIP label Apr 6, 2017
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.

2 participants