\LifespanFactory

Summary

Methods
Properties
Constants
getCurrentLifespan()
getLatestLifespan()
getLatestLifespanWithStatus()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getCurrentLifespan()

getCurrentLifespan(integer  $disputeID) : \Lifespan

Retrieves the most recent accepted Lifespan that has been attributed to the given dispute.

If no Lifespan has been accepted, retrieves the most recent offered Lifespan. If no Lifespan has even been offered, returns a mock Lifespan object so that method calls still work.

Parameters

integer $disputeID

ID of the dispute.

Returns

\Lifespan

getLatestLifespan()

getLatestLifespan(  $disputeID) 

Parameters

$disputeID

getLatestLifespanWithStatus()

getLatestLifespanWithStatus(integer  $disputeID, String  $status) : \Lifespan|false

Returns the latest Lifespan attributed to the dispute that matches the given status. If no Lifespan is found, returns false.

Parameters

integer $disputeID

ID of the dispute.

String $status

Get latest dispute that matches the given status. Special case: 'any'

Returns

\Lifespan|false —

Returns the Lifespan if one exists, or false if it doesn't.