public function monitorFile($pathAndFilename)
    {
        if (!is_string($pathAndFilename)) {
            throw new \InvalidArgumentException('String expected, ' . gettype($pathAndFilename), ' given.', 1231171809);
        }
        $pathAndFilename = Files::getUnixStylePath($pathAndFilename);
        if (array_search($pathAndFilename, $this->monitoredFiles) === false) {
            $this->monitoredFiles[] = $pathAndFilename;
        }
    }
public function monitorFile($pathAndFilename)
    {
        if (!is_string($pathAndFilename)) {
            throw new \InvalidArgumentException('String expected, ' . gettype($pathAndFilename), ' given.', 1231171809);
        }
        $pathAndFilename = Files::getUnixStylePath($pathAndFilename);
        if (array_search($pathAndFilename, $this->monitoredFiles) === false) {
            $this->monitoredFiles[] = $pathAndFilename;
        }
    }
public function monitorFile ( $ pathAndFilename ) { if ( ! is_string ( $ pathAndFilename ) ) { throw new \ InvalidArgumentException ( 'String expected, ' . gettype ( $ pathAndFilename ) , ' given.' , 1231171809 ) ; } $ pathAndFilename = Files :: getUnixStylePath ( $ pathAndFilename ) ; if ( array_search ( $ pathAndFilename , $ this -> monitoredFiles ) === false ) { $ this -> monitoredFiles [ ] = $ pathAndFilename ; } }
Adds the specified file to the list of files to be monitored.
The file in question does not necessarily have to exist.

@param string $pathAndFilename Absolute path and filename of the file to monitor
@return void
@throws \InvalidArgumentException
@api
Adds the specified file to the list of files to be monitored . The file in question does not necessarily have to exist .