EvilFreelancer/easyrsa-php

View on GitHub
src/Interfaces/WorkerInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace EasyRSA\Interfaces;

interface WorkerInterface
{
    /**
     * Show content of certificate file
     *
     * @param string $filename Only name of file must be set, without path
     *
     * @return string|null
     */
    public function getContent(string $filename): ?string;

    /**
     * Execute some command and return result
     *
     * @param string $cmd
     *
     * @return array<string>
     */
    public function exec(string $cmd): array;
}