HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/beerten.komma.nl/vendor/phpbench/phpbench/lib/Model/ResolvedExecutor.php
<?php

namespace PhpBench\Model;

use PhpBench\Registry\Config;

class ResolvedExecutor
{
    /**
     * @var string
     */
    private $name;

    /**
     * @var Config
     */
    private $config;

    public function __construct(string $name, Config $config)
    {
        $this->name = $name;
        $this->config = $config;
    }

    public function getName(): string
    {
        return $this->name;
    }

    public function getConfig(): Config
    {
        return $this->config;
    }

    public static function fromNameAndConfig(string $name, Config $executorConfig)
    {
        return new self($name, $executorConfig);
    }
}