프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$key | ValueObjects\ValueObjectInterface | ||
$value | ValueObjects\ValueObjectInterface |
메소드 | 설명 | |
---|---|---|
__construct ( ValueObjects\ValueObjectInterface $key, ValueObjects\ValueObjectInterface $value ) | Returns a KeyValuePair | |
__toString ( ) : string | Returns a string representation of the KeyValuePair in format "$key => $value" | |
fromNative ( ) : self | Returns a KeyValuePair from native PHP arguments evaluated as strings | |
getKey ( ) : ValueObjects\ValueObjectInterface | Returns key | |
getValue ( ) : ValueObjects\ValueObjectInterface | Returns value | |
sameValueAs ( ValueObjects\ValueObjectInterface $keyValuePair ) : boolean | Tells whether two KeyValuePair are equal |
public __construct ( ValueObjects\ValueObjectInterface $key, ValueObjects\ValueObjectInterface $value ) | ||
$key | ValueObjects\ValueObjectInterface | |
$value | ValueObjects\ValueObjectInterface |
public __toString ( ) : string | ||
리턴 | string |
public static fromNative ( ) : self | ||
리턴 | self |
public getKey ( ) : ValueObjects\ValueObjectInterface | ||
리턴 | ValueObjects\ValueObjectInterface |
public getValue ( ) : ValueObjects\ValueObjectInterface | ||
리턴 | ValueObjects\ValueObjectInterface |
public sameValueAs ( ValueObjects\ValueObjectInterface $keyValuePair ) : boolean | ||
$keyValuePair | ValueObjects\ValueObjectInterface | |
리턴 | boolean |
protected ValueObjectInterface,ValueObjects $key | ||
리턴 | ValueObjects\ValueObjectInterface |