private function tryWriteFile($path, $content) {
        $interval = 100000;
        $totalTime = 0;

        while (file_put_contents($path, $content) === false) {
            if ($totalTime >= $this->accessTime) {
                return false;
            }

            usleep($interval);

            $totalTime += $interval;
        }

        return true;
    }
private function tryWriteFile($path, $content) {
        $interval = 100000;
        $totalTime = 0;

        while (file_put_contents($path, $content) === false) {
            if ($totalTime >= $this->accessTime) {
                return false;
            }

            usleep($interval);

            $totalTime += $interval;
        }

        return true;
    }
private function tryWriteFile ( $ path , $ content ) { $ interval = 100000 ; $ totalTime = 0 ; while ( file_put_contents ( $ path , $ content ) === false ) { if ( $ totalTime >= $ this -> accessTime ) { return false ; } usleep ( $ interval ) ; $ totalTime += $ interval ; } return true ; }
Trying to save the file.

@return bool
Trying to save the file .