1 | <?php |
||
5 | class Regex extends \Psecio\Invoke\MatchInstance |
||
6 | { |
||
7 | /** |
||
8 | * Evaluate the provided resource for a match on the provided URI |
||
9 | * |
||
10 | * @param string|\Psecio\Invoke\Resource $data URI to match against |
||
11 | * @return boolean Pass/fail status |
||
12 | */ |
||
13 | public function evaluate($data) |
||
52 | |||
53 | /** |
||
54 | * Set the current URI paramaters |
||
55 | * |
||
56 | * @param array $params Paramster set |
||
57 | */ |
||
58 | public function setParams(array $params) |
||
62 | |||
63 | /** |
||
64 | * Get the current parameter set |
||
65 | * |
||
66 | * @return array Parameter set |
||
67 | */ |
||
68 | public function getParams() |
||
72 | } |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: