Documentation > Value Objects > add missing information

This commit is contained in:
Meritoo
2019-03-04 18:52:07 +01:00
parent 924e492e11
commit 2247000a8a

View File

@@ -67,7 +67,7 @@ $asString = (string)$address; // "4th Avenue 10/200, 00123, New York"
Represents bank account. Contains properties:
1. `$bankName` - name of bank
2. $accountNumber` - number of bank's account
2. `$accountNumber` - number of bank's account
##### New instance
@@ -173,6 +173,17 @@ New instance can be created using:
Version::fromString('1.0.2');
```
##### Conversion to string (the `__toString()` method)
Instance of `Version` may be represented as string that contains all properties separated by `.` (`$majorPart`.`$minorPart`.`$patchPart`).
Example:
```php
$version = new Version(1, 0, 2);
$asString = (string)$version; // "1.0.2"
```
# More
1. [Base test case (with common methods and data providers)](Base-test-case.md)