| 1 | <?php |
||
| 5 | class Match |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Create a new match instance |
||
| 9 | * |
||
| 10 | * @param string $type Match type to create (Ex: "user.hasGroup") |
||
| 11 | * @param array $config Configuration items |
||
| 12 | * @param boolean $negate Reverse the check |
||
| 13 | * @throws \InvalidArgumentException If the match type provided is invalid |
||
| 14 | * @return \Psecio\Invoke\Match instance |
||
| 15 | */ |
||
| 16 | public static function create($type, $config, $negate = false) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Format the namespace for the Match type given |
||
| 28 | * |
||
| 29 | * @param string $type Match type (ex: "user.hasGroup") |
||
| 30 | * @return string Namespaced version of the class for given group |
||
| 31 | */ |
||
| 32 | public static function formatNamespace($type) |
||
| 40 | } |