protected function validateFileClassname($file, $extension)
    {
        $destinationClass = $file->get_class_for_file_extension($extension);
        return $file->ClassName === $destinationClass;
    }
protected function validateFileClassname($file, $extension)
    {
        $destinationClass = $file->get_class_for_file_extension($extension);
        return $file->ClassName === $destinationClass;
    }
protected function validateFileClassname ( $ file , $ extension ) { $ destinationClass = $ file -> get_class_for_file_extension ( $ extension ) ; return $ file -> ClassName === $ destinationClass ; }
Check if a file's classname is compatible with it's extension

@param File $file
@param string $extension
@return bool
Check if a file s classname is compatible with it s extension