PHP Classes

File: src/Interfaces/WorkflowInterface.php

Recommend this page to a friend!
  Classes of Rodolfo Berrios Arce   Workflow   src/Interfaces/WorkflowInterface.php   Download  
File: src/Interfaces/WorkflowInterface.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Workflow
Create and run action workflows
Author: By
Last change:
Date: 1 month ago
Size: 1,159 bytes
 

 

Contents

Class file image Download
<?php

/*
 * This file is part of Chevere.
 *
 * (c) Rodolfo Berrios <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace
Chevere\Workflow\Interfaces;

use
Chevere\Parameter\Interfaces\ParameterInterface;
use
Chevere\Parameter\Interfaces\ParametersInterface;
use
Countable;
use
OverflowException;

/**
 * Describes the component in charge of defining a collection of chained tasks.
 */
interface WorkflowInterface extends Countable
{
    public function
jobs(): JobsInterface;

   
/**
     * Return an instance with the specified `$job`.
     *
     * This method MUST retain the state of the current instance, and return
     * an instance that contains the specified `$job`.
     *
     * @throws OverflowException
     */
   
public function withAddedJob(JobInterface ...$job): self;

    public function
parameters(): ParametersInterface;

   
/**
     * Provides access to the expected return parameter for the given `$job`.
     */
   
public function getJobResponseParameter(string $job): ParameterInterface;
}