1 | <?php |
||
5 | class SearchNearMatchResultSet extends SearchResultSet { |
||
6 | private $fetched = false; |
||
7 | |||
8 | /** |
||
9 | * @param Title|null $match Title if matched, else null |
||
10 | */ |
||
11 | public function __construct( $match ) { |
||
14 | |||
15 | public function numRows() { |
||
18 | |||
19 | public function next() { |
||
26 | |||
27 | public function rewind() { |
||
30 | } |
||
31 |
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: