You are here

VerifierFileChecksum.php in Automatic Updates 7

Same filename and directory in other branches
  1. 8 vendor/drupal/php-signify/src/VerifierFileChecksum.php

Namespace

Drupal\Signify

File

vendor/drupal/php-signify/src/VerifierFileChecksum.php
View source
<?php

namespace Drupal\Signify;


/**
 * Class VerifierFileChecksum
 * Models a particular file's expected checksum using some algorithm.
 */
class VerifierFileChecksum {

  /**
   * @var string
   */
  public $filename;

  /**
   * @var string
   */
  public $algorithm;

  /**
   * @var string
   */
  public $hex_hash;

  /**
   * @var bool
   * Indicates whether this object contains a hash obtained from a verified source.
   */
  public $trusted;
  public function __construct($filename, $algorithm, $hex_hash, $trusted) {
    $this->filename = $filename;
    $this->algorithm = $algorithm;
    $this->hex_hash = $hex_hash;
    $this->trusted = $trusted;
  }

}

Classes

Namesort descending Description
VerifierFileChecksum Class VerifierFileChecksum Models a particular file's expected checksum using some algorithm.