Netresearch\Composer\Patches\Patch::__construct PHP Метод

__construct() публичный Метод

Construct with $info from {@see PatchSet::process()}
public __construct ( stdClass $info, Netresearch\Composer\Patches\PatchSet $patchSet )
$info stdClass
$patchSet Netresearch\Composer\Patches\PatchSet
    public function __construct(\stdClass $info, PatchSet $patchSet)
    {
        $this->info = $info;
        $this->patchSet = $patchSet;
        $this->checksum = sha1($this->read());
        if (isset($this->info->sha1) && $this->info->sha1 !== $this->checksum) {
            throw new Exception("Expected checksum '{$this->info->sha1}' but got '{$this->checksum}'");
        }
    }