mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +01:00
Arrays > getNonEmptyValuesAsString() method > returns non-empty values concatenated by given separator
1.1 KiB
1.1 KiB
Meritoo Common Library
Common and useful classes, methods, exceptions etc.
Value Objects
Located in Meritoo\Common\ValueObject namespace.
Version
Namespace
Meritoo\Common\ValueObject\Version
Info
Represents version of software. Contains 3 properties:
$majorPart- the "major" part of version$minorPart- the "minor" part of version$patchPart- the "patch" part of version
New instance
New instance can be created using:
-
Constructor:
new Version(1, 0, 2); -
Static methods:
fromArray()- creates new instance using given version as array
Version::fromArray([1, 0, 2]);fromString()- creates new instance using given version as string:
Version::fromString('1.0.2');