NameDeduplicationParameters
extends RosetteParamsSetBase
in package
Class NameDeduplicationParameters.
Table of Contents
Properties
- $names : array<string|int, mixed>
- $threshold : float
Methods
- __construct() : mixed
- constructor.
- get() : mixed
- Gets a property value based on the property name.
- getMultiPartContent() : string
- Provides default multiPart call for child classes that don't implement it
- serialize() : string
- Serialize into a json string.
- set() : mixed
- Sets a property based on the name.
- validate() : mixed
- Validates parameters.
- removeEmptyProperties() : mixed
- Recursively removes empty properties to facilitate json encoding.
Properties
$names
public
array<string|int, mixed>
$names
list of Name objects
$threshold
public
float
$threshold
threshold 0 - 1 range for cluster size. Can be null to use default.
Methods
__construct()
constructor.
public
__construct(mixed $names[, mixed $threshold = null ]) : mixed
Parameters
- $names : mixed
- $threshold : mixed = null
get()
Gets a property value based on the property name.
public
get(string $propertyName) : mixed
Parameters
- $propertyName : string
-
the name of the property
Tags
Return values
mixed —property value
getMultiPartContent()
Provides default multiPart call for child classes that don't implement it
public
getMultiPartContent() : string
Return values
stringserialize()
Serialize into a json string.
public
serialize(mixed $options) : string
Parameters
- $options : mixed
-
associative array of options
Return values
stringset()
Sets a property based on the name.
public
set(string $propertyName, mixed $value) : mixed
Parameters
- $propertyName : string
-
the name of the property
- $value : mixed
-
the value to set
validate()
Validates parameters.
public
validate() : mixed
Tags
removeEmptyProperties()
Recursively removes empty properties to facilitate json encoding.
private
removeEmptyProperties(mixed $obj) : mixed
Parameters
- $obj : mixed
-
Object to clean