PHP Class SubmitResponse

Author: Tyler
Inheritance: extends FactualResponse
Show file Open project: factual/factual-php-driver

Protected Properties

Property Type Description
$commitID
$factualID
$isDelayed
$newEntity

Public Methods

Method Description
getCommitID ( ) : string | null Get the Commit ID (transaction identifier)
getFactualID ( ) : string | null Get the Factual ID (extant entity only)
isDelayed ( ) : boolean Is the write delayed?
isNew ( ) : boolean Is this a new entity (inserted) or extant entity (updated)

Protected Methods

Method Description
parseJSON ( $json ) : array Parses JSON as array and assigns object values

Method Details

getCommitID() public method

Get the Commit ID (transaction identifier)
public getCommitID ( ) : string | null
return string | null | null on no ID

getFactualID() public method

Get the Factual ID (extant entity only)
public getFactualID ( ) : string | null
return string | null | null on no ID

isDelayed() public method

Is the write delayed?
public isDelayed ( ) : boolean
return boolean

isNew() public method

Is this a new entity (inserted) or extant entity (updated)
public isNew ( ) : boolean
return boolean

parseJSON() protected method

Parses JSON as array and assigns object values
protected parseJSON ( $json ) : array
return array structured JSON

Property Details

$commitID protected property

protected $commitID

$factualID protected property

protected $factualID

$isDelayed protected property

protected $isDelayed

$newEntity protected property

protected $newEntity