bmitch/churn-php

View on GitHub
src/Process/ProcessInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Churn\Process;

use Churn\File\File;

/**
 * @internal
 */
interface ProcessInterface
{
    /**
     * Start the process.
     */
    public function start(): void;

    /**
     * Determines if the process was successful.
     */
    public function isSuccessful(): bool;

    /**
     * Gets the file the process is being executed on.
     */
    public function getFile(): File;
}