You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/basic-usage.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ For each of these top-level types, the package provides a dedicated object to pa
11
11
representation of the field and to serialize the value object back to the textual representation.
12
12
13
13
- Parsing is done via a common named constructor `fromHttpValue` which expects the Header or Trailer string value.
14
-
- Serializing is done via a common `toHttpValue` public method. The method returns the **normalized string** representation suited for HTTP textual representation.
14
+
- Serializing is done via a common `toHttpValue` public method or using the `__toString` method. The method returns the **normalized string** representation suited for HTTP textual representation.
15
15
16
16
```php
17
17
use Bakame\Http\StructuredFields\Dictionary;
@@ -20,14 +20,14 @@ use Bakame\Http\StructuredFields\OrderedList;
The package exposes [ordered maps](ordered-maps.md)
@@ -27,7 +27,7 @@ At any given time it is possible with each of these objects to:
27
27
- iterate over its members using the `IteratorAggregate` interface;
28
28
- know the number of members it contains via the `Countable` interface;
29
29
- tell whether the container contains or not members with the `hasMembers` methods from the `Container` interface;
30
-
-to access the members using the methods exposed by the `ArrayAccess`. **WARNING: Updating using `ArrayAccess` method is forbidden and will result in a `LogicException` being emitted.**;
30
+
- access the members using the methods exposed by the `ArrayAccess`. **WARNING: Updating using `ArrayAccess` method is forbidden and will result in a `ForbiddenOperation` being emitted.**;
31
31
32
32
getter methods:
33
33
@@ -36,5 +36,5 @@ getter methods:
36
36
37
37
**Of note:**
38
38
39
-
- All setter methods are returns a new instance with the applied changes.
39
+
- All setter methods returns a new instance with the applied changes.
40
40
- For setter methods, Item types are inferred using `Item::from` if a `Item` object is not provided.
[](https://github.com/sponsors/nyamsprod)
10
10
11
-
The package uses value objects to parse, serializeand build[HTTP Structured Fields][1] in PHP.
11
+
The package uses value objects to parse, serialize, build and update[HTTP Structured Fields][1] in PHP.
12
12
13
13
HTTP Structured fields are intended for use by specifications of new HTTP fields that wish to
14
14
use a common syntax that is more restrictive than traditional HTTP field values or could
0 commit comments