Свойство | Тип | Описание | |
---|---|---|---|
$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 |