Documentation

DecodeIfSupported

Tags
psalm-template

BSONType

psalm-template

NativeType

Table of Contents

Methods

canDecode()  : bool
decode()  : mixed
decodeIfSupported()  : mixed

Methods

canDecode()

public abstract canDecode(mixed $value) : bool
Parameters
$value : mixed
Tags
psalm-assert-if-true

BSONType $value

Return values
bool

decode()

public abstract decode(mixed $value) : mixed
Parameters
$value : mixed
Tags
psalm-param

BSONType $value

psalm-return

NativeType

throws
UnsupportedValueException

if the decoder does not support the value

decodeIfSupported()

public decodeIfSupported(mixed $value) : mixed
Parameters
$value : mixed
Tags
psalm-return

($value is BSONType ? NativeType : $value)


        
On this page

Search results