File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ All Notable changes to `bakame/http-strucured-fields` will be documented in this
7
7
### Added
8
8
9
9
- Introduce the` MemberContainer ` interface.
10
+ - Introduce the` ParameterAccess ` interface.
10
11
- ` OrderedList ` , ` InnerList ` now implements the ` MemberList ` interface.
11
12
- ` Parameters ` and ` Dictionnary ` now implements the PHP ` MemberOrderedMap ` interface.
12
13
- ` Token::value ` is a readonly property.
Original file line number Diff line number Diff line change 16
16
/**
17
17
* @implements MemberList<int, Item>
18
18
*/
19
- final class InnerList implements MemberList
19
+ final class InnerList implements MemberList, ParameterAccess
20
20
{
21
21
/** @var array<int, Item> */
22
22
private array $ members ;
Original file line number Diff line number Diff line change 20
20
use function substr ;
21
21
use function trim ;
22
22
23
- final class Item implements StructuredField
23
+ final class Item implements StructuredField, ParameterAccess
24
24
{
25
25
private function __construct (
26
26
private Token |ByteSequence |int |float |string |bool $ value ,
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace Bakame \Http \StructuredFields ;
6
+
7
+ /**
8
+ * @property-read MemberOrderedMap<string, StructuredField> $parameters
9
+ */
10
+ interface ParameterAccess
11
+ {
12
+ }
You can’t perform that action at this time.
0 commit comments