PHP Class Rs\Json\Patch\Operation

Mostrar archivo Open project: raphaelstolt/php-jsonpatch Class Usage Examples

Protected Properties

Property Type Description
$name string
$path string
$value mixed

Public Methods

Method Description
__construct ( string $op, stdClass $operation )
getName ( ) : string
getPath ( ) : string
getValue ( ) : mixed
perform ( string $targetDocument ) : mixed

Protected Methods

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

Method Details

__construct() public method

public __construct ( string $op, stdClass $operation )
$op string
$operation stdClass

assertMandatories() abstract protected method

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

getName() public method

public getName ( ) : string
return string

getPath() public method

public getPath ( ) : string
return string

getPointerParts() protected method

protected getPointerParts ( ) : array
return array

getValue() public method

public getValue ( ) : mixed
return mixed

perform() abstract public method

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

Property Details

$name protected_oe property

protected string $name
return string

$path protected_oe property

protected string $path
return string

$value protected_oe property

protected mixed $value
return mixed