Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Created July 1, 2013 07:18
Show Gist options
  • Save StanAngeloff/5898937 to your computer and use it in GitHub Desktop.
Save StanAngeloff/5898937 to your computer and use it in GitHub Desktop.
<?php
use Guard\Conditions;
function add($a, $b) {
Conditions::requires($a, 'a')->isNumeric();
Conditions::requires($b, 'b')->isNumeric();
return $a + $b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment