private function setModificationDate(array $ftpInfo)
    {
        $modDate      = !empty($ftpInfo['modify'])
                      ? DateTimeImmutable::createFromFormat('YmdHis', $ftpInfo['modify'])
                      : false;
        $this->modify = !empty($modDate) ? $modDate : new DateTimeImmutable();
    }
private function setModificationDate(array $ftpInfo)
    {
        $modDate      = !empty($ftpInfo['modify'])
                      ? DateTimeImmutable::createFromFormat('YmdHis', $ftpInfo['modify'])
                      : false;
        $this->modify = !empty($modDate) ? $modDate : new DateTimeImmutable();
    }
private function setModificationDate ( array $ ftpInfo ) { $ modDate = ! empty ( $ ftpInfo [ 'modify' ] ) ? DateTimeImmutable :: createFromFormat ( 'YmdHis' , $ ftpInfo [ 'modify' ] ) : false ; $ this -> modify = ! empty ( $ modDate ) ? $ modDate : new DateTimeImmutable ( ) ; }
Set modification date.

@param  array $ftpInfo
@throws \Exception
Set modification date .