public function write($data, $lock = false) {
        if (!is_string($data) && !is_integer($data)) {
            $data = var_export($data, true);
        }
        if (is_bool($lock)) {
            $lock = $lock ? LOCK_EX : 0;
        }
        return file_put_contents($this->fullName, $data, $lock);
    }
public function write($data, $lock = false) {
        if (!is_string($data) && !is_integer($data)) {
            $data = var_export($data, true);
        }
        if (is_bool($lock)) {
            $lock = $lock ? LOCK_EX : 0;
        }
        return file_put_contents($this->fullName, $data, $lock);
    }
public function write ( $ data , $ lock = false ) { if ( ! is_string ( $ data ) && ! is_integer ( $ data ) ) { $ data = var_export ( $ data , true ) ; } if ( is_bool ( $ lock ) ) { $ lock = $ lock ? LOCK_EX : 0 ; } return file_put_contents ( $ this -> fullName , $ data , $ lock ) ; }
PUT FILE CONTENT
@param string $data
@param bool|integer $lock
@return int
PUT FILE CONTENT