PHP Class Rs\Json\Patch\Operations\Remove

Inheritance: extends Rs\Json\Patch\Operation
ファイルを表示 Open project: raphaelstolt/php-jsonpatch Class Usage Examples

Public Methods

Method Description
__construct ( stdClass $operation )
perform ( string $targetDocument ) : string

Protected Methods

Method Description
assertMandatories ( stdClass $operation ) Guard the mandatory operation properties

Private Methods

Method Description
remove ( array | stdClass &$json, array $pointerParts )

Method Details

__construct() public method

public __construct ( stdClass $operation )
$operation stdClass

assertMandatories() protected method

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

perform() public method

public perform ( string $targetDocument ) : string
$targetDocument string
return string