1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?php
namespace Gedcomx\Rs\Client\Options;
use GuzzleHttp\Psr7\Request;
/**
* Defines a method to manipulate and apply options to a REST API request before execution.
*
* Interface StateTransitionOption
*
* @package Gedcomx\Rs\Client\Options
*/
interface StateTransitionOption {
/**
* An option for modifying a state transition.
*
* @param Request $request The request object the Option will modify
* @return Request New request object reflecting the changes
*/
public function apply(Request $request);
}