PHP Class Rs\Json\Patch\Operations\Replace

Inheritance: extends Rs\Json\Patch\Operation
Afficher le fichier Open project: raphaelstolt/php-jsonpatch

Méthodes publiques

Méthode Description
__construct ( stdClass $operation )
perform ( string $targetDocument ) : string

Méthodes protégées

Méthode Description
assertMandatories ( stdClass $operation ) Guard the mandatory operation property

Private Methods

Méthode Description
replace ( array | stdClass &$json, array $pointerParts, mixed $value = null )

Method Details

__construct() public méthode

public __construct ( stdClass $operation )
$operation stdClass

assertMandatories() protected méthode

Guard the mandatory operation property
protected assertMandatories ( stdClass $operation )
$operation stdClass The operation structure.

perform() public méthode

public perform ( string $targetDocument ) : string
$targetDocument string
Résultat string