PHP Class Rs\Json\Patch\Operations\Add

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

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
getReplacementValue ( ) : mixed Returns the replacement value.

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