public function touch($modificationTime = null, $accessTime = null)
    {
        if ($this->isFile()) {
            if (is_null($modificationTime)) {
                $modificationTime = time();
            }

            if (is_null($accessTime)) {
                $accessTime = $modificationTime;
            }

            return touch($this->getPathname(), (int)$modificationTime, (int)$accessTime);
        } else {
            throw new FileException('File can not be touched, because it is no file or do not exist.', E_NOTICE);
        }
    }
public function touch($modificationTime = null, $accessTime = null)
    {
        if ($this->isFile()) {
            if (is_null($modificationTime)) {
                $modificationTime = time();
            }

            if (is_null($accessTime)) {
                $accessTime = $modificationTime;
            }

            return touch($this->getPathname(), (int)$modificationTime, (int)$accessTime);
        } else {
            throw new FileException('File can not be touched, because it is no file or do not exist.', E_NOTICE);
        }
    }
public function touch ( $ modificationTime = null , $ accessTime = null ) { if ( $ this -> isFile ( ) ) { if ( is_null ( $ modificationTime ) ) { $ modificationTime = time ( ) ; } if ( is_null ( $ accessTime ) ) { $ accessTime = $ modificationTime ; } return touch ( $ this -> getPathname ( ) , ( int ) $ modificationTime , ( int ) $ accessTime ) ; } else { throw new FileException ( 'File can not be touched, because it is no file or do not exist.' , E_NOTICE ) ; } }
touch set access and modification time to file

@param       int     $modificationTime       optional unix timestamp of modification time, default is current time
@param       int     $accessTime             optional unix timestamp of access time. default is the modification time
@return      bool
@throws      FileException
touch set access and modification time to file