MutateArrayPrependSpec
in package
implements
MutateInSpec
Indicates to prepend a value to an array 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
- $values : array<string|int, mixed>
- __construct() : mixed
- build() : MutateArrayPrependSpec
- createPath() : MutateArrayPrependSpec
- expandMacros() : MutateArrayPrependSpec
- xattr() : MutateArrayPrependSpec
Properties
$createPath
private
bool
$createPath
$expandMacros
private
bool
$expandMacros
$isXattr
private
bool
$isXattr
$path
private
string
$path
$values
private
array<string|int, mixed>
$values
Methods
__construct()
public
__construct(string $path, array<string|int, mixed> $values[, bool $isXattr = false ][, bool $createPath = false ][, bool $expandMacros = false ]) : mixed
Parameters
- $path : string
- $values : array<string|int, mixed>
- $isXattr : bool = false
- $createPath : bool = false
- $expandMacros : bool = false
Tags
Return values
mixed —build()
public
static build(string $path, array<string|int, mixed> $values[, bool $isXattr = false ][, bool $createPath = false ][, bool $expandMacros = false ]) : MutateArrayPrependSpec
Parameters
- $path : string
- $values : array<string|int, mixed>
- $isXattr : bool = false
- $createPath : bool = false
- $expandMacros : bool = false
Tags
Return values
MutateArrayPrependSpec —createPath()
public
createPath(bool $createPath) : MutateArrayPrependSpec
Parameters
- $createPath : bool
Tags
Return values
MutateArrayPrependSpec —expandMacros()
public
expandMacros(bool $expandMacros) : MutateArrayPrependSpec
Parameters
- $expandMacros : bool
Tags
Return values
MutateArrayPrependSpec —xattr()
public
xattr(bool $isXattr) : MutateArrayPrependSpec
Parameters
- $isXattr : bool