메소드 | 설명 | |
---|---|---|
__construct ( ValueObjects\StringLiteral\StringLiteral $first_name, ValueObjects\StringLiteral\StringLiteral $middle_name, ValueObjects\StringLiteral\StringLiteral $last_name ) | Returns a Name object | |
__toString ( ) : string | Returns the full name | |
fromNative ( ) : |
Returns a Name objects form PHP native values | |
getFirstName ( ) : ValueObjects\StringLiteral\StringLiteral | Returns the first name | |
getFullName ( ) : ValueObjects\StringLiteral\StringLiteral | Returns the full name | |
getLastName ( ) : ValueObjects\StringLiteral\StringLiteral | Returns the last name | |
getMiddleName ( ) : ValueObjects\StringLiteral\StringLiteral | Returns the middle name | |
sameValueAs ( ValueObjects\ValueObjectInterface $name ) : boolean | Tells whether two names are equal by comparing their values |
public __construct ( ValueObjects\StringLiteral\StringLiteral $first_name, ValueObjects\StringLiteral\StringLiteral $middle_name, ValueObjects\StringLiteral\StringLiteral $last_name ) | ||
$first_name | ValueObjects\StringLiteral\StringLiteral | |
$middle_name | ValueObjects\StringLiteral\StringLiteral | |
$last_name | ValueObjects\StringLiteral\StringLiteral |
public static fromNative ( ) : |
||
리턴 |
public getFirstName ( ) : ValueObjects\StringLiteral\StringLiteral | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
public getFullName ( ) : ValueObjects\StringLiteral\StringLiteral | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
public getLastName ( ) : ValueObjects\StringLiteral\StringLiteral | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
public getMiddleName ( ) : ValueObjects\StringLiteral\StringLiteral | ||
리턴 | ValueObjects\StringLiteral\StringLiteral |
public sameValueAs ( ValueObjects\ValueObjectInterface $name ) : boolean | ||
$name | ValueObjects\ValueObjectInterface | |
리턴 | boolean |