Property | Type | Description | |
---|---|---|---|
$key | ValueObjects\ValueObjectInterface | ||
$value | ValueObjects\ValueObjectInterface |
Method | Description | |
---|---|---|
__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 | ||
return | string |
public static fromNative ( ) : self | ||
return | self |
public getKey ( ) : ValueObjects\ValueObjectInterface | ||
return | ValueObjects\ValueObjectInterface |
public getValue ( ) : ValueObjects\ValueObjectInterface | ||
return | ValueObjects\ValueObjectInterface |
public sameValueAs ( ValueObjects\ValueObjectInterface $keyValuePair ) : boolean | ||
$keyValuePair | ValueObjects\ValueObjectInterface | |
return | boolean |
protected ValueObjectInterface,ValueObjects $key | ||
return | ValueObjects\ValueObjectInterface |