src/Shell/Task/CsvMigrationTask.php
protected function _getLastModifiedTime(string $tableName) : string
    {
        $tableName = Inflector::camelize($tableName);

        $mc = new ModuleConfig(ConfigType::MIGRATION(), $tableName);
        $path = $mc->find();

        $mtime = filemtime($path);
        if (false === $mtime) {
            $this->abort('Failed to get file\'s last modified time');
        }

        // Unit time stamp to YYYYMMDDhhmmss
        return date('YmdHis', $mtime);
    }
protected function _getLastModifiedTime(string $tableName) : string
    {
        $tableName = Inflector::camelize($tableName);

        $mc = new ModuleConfig(ConfigType::MIGRATION(), $tableName);
        $path = $mc->find();

        $mtime = filemtime($path);
        if (false === $mtime) {
            $this->abort('Failed to get file\'s last modified time');
        }

        // Unit time stamp to YYYYMMDDhhmmss
        return date('YmdHis', $mtime);
    }
protected function _getLastModifiedTime ( string $ tableName ) : string { $ tableName = Inflector :: camelize ( $ tableName ) ; $ mc = new ModuleConfig ( ConfigType :: MIGRATION ( ) , $ tableName ) ; $ path = $ mc -> find ( ) ; $ mtime = filemtime ( $ path ) ; if ( false === $ mtime ) { $ this -> abort ( 'Failed to get file\'s last modified time' ) ; } // Unit time stamp to YYYYMMDDhhmmss return date ( 'YmdHis' , $ mtime ) ; }
Get csv file's last modified time.

@param string $tableName target table name
@return string
Get csv file s last modified time .