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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature add a builder for interface #61

Closed

Conversation

Trismegiste
Copy link

Hello,

I like your design of the fluent builders. Though a builder for interfaces would be nice.

I try to closely following your formatting and coding conventions. If something is wrong, don't hesitate to criticize.

You can find in this PR :

  • a builder for interface
  • a test for the builder for interface
  • adding a new method "interface" in the BuilderFactory
  • a test for the new method

Hope this helps 馃嵑

PS: one other thing I forgot :

There is some copy-paste between class builder and interface builder but I don't think we can factorize both builders. It reminds me the circle-ellipse problem.


eval($this->dump($contract));

$this->assertTrue(interface_exists('Contract', false));
Copy link
Author

Choose a reason for hiding this comment

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

Perhaps more tests here would be nice on the constant...

@nikic
Copy link
Owner

nikic commented May 23, 2013

Thanks, committed in 12faad5 :)

@nikic nikic closed this May 23, 2013
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.

None yet

2 participants