alzpk/value-objects

A set of value objects

0.0.2 2021-09-14 18:15 UTC

This package is auto-updated.

Last update: 2024-11-15 01:21:34 UTC


README

A set of value objects.

Requirements

{
  "php": "^7.4"
}

Installation

composer require alzpk/value-objects

Usage example

$name = new Alzpk\ValueObjets\Name('John', 'Doe');

$name->getFirstname(); // Returns "John"
$name->getLastname(); // Returns "Doe"
$name->getFullName(); // Returns "John Doe"

Testing

The package comes with individual tests for each value object.