Overview

Namespaces

  • LeanCloud
    • Engine
    • Operation
    • Storage
    • Uploader

Classes

  • ArrayOperation
  • DeleteOperation
  • IncrementOperation
  • RelationOperation
  • SetOperation

Interfaces

  • IOperation
  • Overview
  • Namespace
  • Class

Class IncrementOperation

Increment operation

LeanCloud\Operation\IncrementOperation implements LeanCloud\Operation\IOperation
Namespace: LeanCloud\Operation
Located at LeanCloud/Operation/IncrementOperation.php
Methods summary
public
# __construct( string $key, number $val )

Initialize operation

Initialize operation

Parameters

$key
$val
public string
# getKey( )

Get key of field the operation applies to

Get key of field the operation applies to

Returns

string
public number
# getValue( )

Get value of operation

Get value of operation

Returns

number
public string
# encode( )

Encode to JSON represented operation

Encode to JSON represented operation

Returns

string
json represented string

Implementation of

LeanCloud\Operation\IOperation::encode()
public mixed
# applyOn( mixed $oldval )

Apply operation on old value and returns new one

Apply operation on old value and returns new one

Parameters

$oldval

Returns

mixed

Implementation of

LeanCloud\Operation\IOperation::applyOn()
public LeanCloud\Operation\IOperation
# mergeWith( LeanCloud\Operation\IOperation $prevOp )

Merge this operation into a (previous) operation.

Merge this operation into a (previous) operation.

Parameters

$prevOp

Returns

LeanCloud\Operation\IOperation

Implementation of

LeanCloud\Operation\IOperation::mergeWith()
API documentation generated by ApiGen