Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?
final class Poll {
function _construct(array $questions, AnonnyomousStrategy $annonymousStrategy, ValidationPolicy $validationPolicy) {
//...
}
}
//invalid
new Poll([]);
new Poll([], new NoAnonnyomousValidStrategy());
new Poll([], , new StrictValidationPolicy());
//Valid
new Poll([], new NoAnonnyomousValidStrategy(), new StrictValidationPolicy());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment