Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/cartforge.co/vendor/phpmd/phpmd/src/main/php/PHPMD/Cache/Model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/cartforge.co/vendor/phpmd/phpmd/src/main/php/PHPMD/Cache/Model/ResultCacheKey.php
<?php

namespace PHPMD\Cache\Model;

class ResultCacheKey
{
    /** @var bool */
    private $strict;
    /** @var string|null */
    private $baselineHash;
    /** @var array<string, string> */
    private $rules;
    /** @var array<string, string> */
    private $composer;
    /** @var int */
    private $phpVersion;

    /**
     * @param bool                  $strict
     * @param string|null           $baselineHash
     * @param array<string, string> $rules
     * @param array<string, string> $composer
     * @param int                   $phpVersion
     */
    public function __construct($strict, $baselineHash, $rules, $composer, $phpVersion)
    {
        $this->strict       = $strict;
        $this->baselineHash = $baselineHash;
        $this->rules        = $rules;
        $this->composer     = $composer;
        $this->phpVersion   = $phpVersion;
    }

    /**
     * @return array
     */
    public function toArray()
    {
        return array(
            'strict'       => $this->strict,
            'baselineHash' => $this->baselineHash,
            'rules'        => $this->rules,
            'composer'     => $this->composer,
            'phpVersion'   => $this->phpVersion,
        );
    }

    /**
     * @return bool
     */
    public function isEqualTo(ResultCacheKey $other)
    {
        return $this->strict === $other->strict
            && $this->baselineHash === $other->baselineHash
            && $this->rules === $other->rules
            && $this->composer === $other->composer
            && $this->phpVersion === $other->phpVersion;
    }
}

Spamworldpro Mini