1 <?php namespace CupOfTea\Chain\Contracts;
2
3 interface ResultAccess
4 {
5
6 /**
7 * Return the result with the specified name.
8 *
9 * @param string $result Name of the result
10 * @return mixed value of the result
11 */
12 public function getResult($result);
13
14 /**
15 * Return all results as an associative array where the keys are the name of the result.
16 *
17 * @return Array The results
18 */
19 public function getResults();
20
21 /**
22 * Alias for getResults.
23 *
24 * @see CupOfTea\Chain\Contracts\ResultAccess::getResults()
25 */
26 public function toArray();
27
28 }