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

Constructor aliases #9

Merged
merged 3 commits into from
May 26, 2013

Conversation

mauris
Copy link
Contributor

@mauris mauris commented May 26, 2013

I'm suggesting the addition of an optional parameter "$alias" in the constructor of UnitOfMeasure. If it's a go then I'll migrate the others too.

triplepoint added a commit that referenced this pull request May 26, 2013
@triplepoint triplepoint merged commit 31ba080 into PhpUnitsOfMeasure:master May 26, 2013
@triplepoint
Copy link
Member

I agree, this is a legitimate change. All the other properties of UnitOfMeasure are settable from the constructor, so it makes sense for aliases to be, too.

Thanks for the work.

@mauris
Copy link
Contributor Author

mauris commented May 26, 2013

No problem. I will edit the other units to add aliases via constructor.

This pull request was closed.
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