Bitrix API

Value implements Arrayable, JsonSerializable

FinalYes

Table of Contents

Interfaces

Arrayable
JsonSerializable

Methods

__clone()  : void
getHash()  : string
Returns string that represents this Value object. If two object have equal hashes, they are equal.
getId()  : int|null
getTypeId()  : string|null
getValue()  : string|null
getValueExtra()  : ValueExtra|null
getValueType()  : string|null
isEqualTo()  : bool
jsonSerialize()  : array<string|int, mixed>
setId()  : self
setTypeId()  : self
setValue()  : self
setValueExtra()  : self
setValueType()  : self
toArray()  : array<string|int, mixed>

Methods

__clone()

public __clone() : void

getHash()

Returns string that represents this Value object. If two object have equal hashes, they are equal.

public getHash() : string

Hash doesn't depend on an object instance, only properties are taken into account. Therefore, different instances with equal properties will have equal hashes. Calculation is one-way only, there is no way to recover object from its hash.

Return values
string

getId()

public getId() : int|null
Return values
int|null

getTypeId()

public getTypeId() : string|null
Return values
string|null

getValue()

public getValue() : string|null
Return values
string|null

getValueType()

public getValueType() : string|null
Return values
string|null

isEqualTo()

public isEqualTo(self $anotherValue) : bool
Parameters
$anotherValue : self
Return values
bool

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

setId()

public setId(int|null $id) : self
Parameters
$id : int|null
Return values
self

setTypeId()

public setTypeId(string|null $typeId) : self
Parameters
$typeId : string|null
Return values
self

setValue()

public setValue(string|null $value) : self
Parameters
$value : string|null
Return values
self

setValueType()

public setValueType(string|null $valueType) : self
Parameters
$valueType : string|null
Return values
self

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results