MutateInsertSpec
in package
implements
MutateInSpec
Indicates to insert a value at a path in a document.
Interfaces, Classes, Traits and Enums
- MutateInSpec
- MutateInSpec is an interface for providing subdocument mutation operations.
Table of Contents
- $createPath : bool
- $expandMacros : bool
- $isXattr : bool
- $path : string
- $value : mixed
- __construct() : mixed
- build() : MutateInsertSpec
- createPath() : MutateInsertSpec
- expandMacros() : MutateInsertSpec
- xattr() : MutateInsertSpec
Properties
$createPath
private
bool
$createPath
$expandMacros
private
bool
$expandMacros
$isXattr
private
bool
$isXattr
$path
private
string
$path
$value
private
mixed
$value
Methods
__construct()
public
__construct(string $path, mixed $value[, bool $isXattr = false ][, bool $createPath = false ][, bool $expandMacros = false ]) : mixed
Parameters
- $path : string
- $value : mixed
- $isXattr : bool = false
- $createPath : bool = false
- $expandMacros : bool = false
Tags
Return values
mixed —build()
public
static build(string $path, mixed $value[, bool $isXattr = false ][, bool $createPath = false ][, bool $expandMacros = false ]) : MutateInsertSpec
Parameters
- $path : string
- $value : mixed
- $isXattr : bool = false
- $createPath : bool = false
- $expandMacros : bool = false
Tags
Return values
MutateInsertSpec —createPath()
public
createPath(bool $createPath) : MutateInsertSpec
Parameters
- $createPath : bool
Tags
Return values
MutateInsertSpec —expandMacros()
public
expandMacros(bool $expandMacros) : MutateInsertSpec
Parameters
- $expandMacros : bool
Tags
Return values
MutateInsertSpec —xattr()
public
xattr(bool $isXattr) : MutateInsertSpec
Parameters
- $isXattr : bool