//file one
class Watcher implements watcherInterface {
public function __construct($id) {
//$this->initialize("watcherBasic", $id);
}
public function createWatcher() {
;
}
}
//file two
interface watcherInterface {
abstract function createWatcher();
}
This is giving me the error:
Fatal error: Access type for interface method watcherInterface::createWatcher() must be omitted in /../.... Line 3
I'm staring at my PHP5 book and am using the same syntax.