Name
- Full name:
\Qubus\ValueObjects\Person\Name
- This class implements:
\Qubus\ValueObjects\ValueObject
Properties
firstName
middleName
lastName
Methods
__construct
Returns a Name object.
public __construct(\Qubus\ValueObjects\StringLiteral\StringLiteral $firstName, \Qubus\ValueObjects\StringLiteral\StringLiteral $middleName, \Qubus\ValueObjects\StringLiteral\StringLiteral $lastName): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$firstName | \Qubus\ValueObjects\StringLiteral\StringLiteral | |
$middleName | \Qubus\ValueObjects\StringLiteral\StringLiteral | |
$lastName | \Qubus\ValueObjects\StringLiteral\StringLiteral |
__toString
Returns the full name.
Throws:
fromNative
Returns a Name objects form PHP native values.
- This method is static.
Throws:
getFirstName
Returns the first name.
getMiddleName
Returns the middle name.
getLastName
Returns the last name.
getFullName
Returns the full name.
Throws:
equals
Tells whether two names are equal by comparing their values.
Parameters:
Parameter | Type | Description |
---|---|---|
$name | \Qubus\ValueObjects\Person\Name|\Qubus\ValueObjects\ValueObject |
Throws:
Automatically generated on 2025-10-13