PHP Class Rs\Json\Patch\Operations\Test

Inheritance: extends Rs\Json\Patch\Operation
Show file Open project: raphaelstolt/php-jsonpatch

Public Methods

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

Protected Methods

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

Private Methods

Method Description
arraysAreIdentical ( array $value, array $get ) : boolean
isValidJsonString ( string $string ) : boolean Check if string is a valid JSON string

Method Details

__construct() public method

public __construct ( stdClass $operation )
$operation stdClass

assertMandatories() protected method

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

perform() public method

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