1 | <?php |
||
9 | class OutputCollectionMutator extends MutableCollection |
||
10 | { |
||
11 | /** |
||
12 | * @param TransactionOutputInterface[] $outputs |
||
13 | */ |
||
14 | 135 | public function __construct(array $outputs) |
|
23 | |||
24 | /** |
||
25 | * @return OutputMutator |
||
26 | */ |
||
27 | public function current() |
||
31 | |||
32 | /** |
||
33 | * @param int $offset |
||
34 | * @return OutputMutator |
||
35 | */ |
||
36 | 18 | public function offsetGet($offset) |
|
44 | |||
45 | /** |
||
46 | * @return TransactionOutputCollection |
||
47 | */ |
||
48 | 117 | public function done() |
|
57 | |||
58 | /** |
||
59 | * @param int|string $start |
||
60 | * @param int|string $length |
||
61 | * @return $this |
||
62 | */ |
||
63 | 30 | public function slice($start, $length) |
|
73 | |||
74 | /** |
||
75 | * @return $this |
||
76 | */ |
||
77 | 12 | public function null() |
|
82 | |||
83 | /** |
||
84 | * @param TransactionOutputInterface $output |
||
85 | * @return $this |
||
86 | */ |
||
87 | 6 | public function add(TransactionOutputInterface $output) |
|
95 | |||
96 | /** |
||
97 | * @param int $i |
||
98 | * @param TransactionOutputInterface $output |
||
99 | * @return $this |
||
100 | */ |
||
101 | 6 | public function set($i, TransactionOutputInterface $output) |
|
106 | } |
||
107 |