Phalcon domain
NOTE
All classes are prefixed with Phalcon
Domain\Payload\Payload¶
Class Source on GitHub
Holds the payload
Phalcon\Domain\Payload\Payload— implementsPhalcon\Domain\Payload\PayloadInterface
Uses Throwable
Method Summary¶
public Throwable|null getException() Gets the potential exception thrown in the domain layer public mixed getExtras() Extra information public mixed getInput() Input public mixed getMessages() Messages public mixed getOutput() Output public mixed getStatus() Status public PayloadInterface setException( Throwable $exception ) Sets an exception thrown in the domain public PayloadInterface setExtras( mixed $extras ) Sets arbitrary extra domain information. public PayloadInterface setInput( mixed $input ) Sets the domain input. public PayloadInterface setMessages( mixed $messages ) Sets the domain messages. public PayloadInterface setOutput( mixed $output ) Sets the domain output. public PayloadInterface setStatus( mixed $status ) Sets the payload status. Properties¶
protected Throwable|null $exception = null Exception if any protected mixed $extras Extra information protected mixed $input Input protected mixed $messages Messages protected mixed $output Output protected mixed $status Status Methods¶
getException()¶
Gets the potential exception thrown in the domain layer
getExtras()¶
Extra information
getInput()¶
Input
getMessages()¶
Messages
getOutput()¶
Output
getStatus()¶
Status
setException()¶
Sets an exception thrown in the domain
setExtras()¶
Sets arbitrary extra domain information.
setInput()¶
Sets the domain input.
setMessages()¶
Sets the domain messages.
setOutput()¶
Sets the domain output.
setStatus()¶
Sets the payload status.
Domain\Payload\PayloadFactory¶
Class Source on GitHub
Factory to create payload objects
Phalcon\Domain\Payload\PayloadFactory
Method Summary¶
Methods¶
newInstance()¶
Instantiate a new object
Domain\Payload\PayloadInterface¶
Interface Source on GitHub
This interface is used for consumers
Phalcon\Domain\Payload\ReadableInterfacePhalcon\Domain\Payload\PayloadInterface— extendsPhalcon\Domain\Payload\ReadableInterface,Phalcon\Domain\Payload\WriteableInterface
Domain\Payload\ReadableInterface¶
Interface Source on GitHub
This interface is used for consumers (read only)
Phalcon\Domain\Payload\ReadableInterface
Uses Throwable
Method Summary¶
public Throwable|null getException() Gets the potential exception thrown in the domain layer public mixed getExtras() Gets arbitrary extra values produced by the domain layer. public mixed getInput() Gets the input received by the domain layer. public mixed getMessages() Gets the messages produced by the domain layer. public mixed getOutput() Gets the output produced from the domain layer. public mixed getStatus() Gets the status of this payload. Methods¶
getException()¶
Gets the potential exception thrown in the domain layer
getExtras()¶
Gets arbitrary extra values produced by the domain layer.
getInput()¶
Gets the input received by the domain layer.
getMessages()¶
Gets the messages produced by the domain layer.
getOutput()¶
Gets the output produced from the domain layer.
getStatus()¶
Gets the status of this payload.
Domain\Payload\Status¶
Class Source on GitHub
Holds the status codes for the payload
Phalcon\Domain\Payload\Status
Constants¶
string ACCEPTED = "ACCEPTED" string AUTHENTICATED = "AUTHENTICATED" string AUTHORIZED = "AUTHORIZED" string CREATED = "CREATED" string DELETED = "DELETED" string ERROR = "ERROR" string FAILURE = "FAILURE" string FOUND = "FOUND" string NOT_ACCEPTED = "NOT_ACCEPTED" string NOT_AUTHENTICATED = "NOT_AUTHENTICATED" string NOT_AUTHORIZED = "NOT_AUTHORIZED" string NOT_CREATED = "NOT_CREATED" string NOT_DELETED = "NOT_DELETED" string NOT_FOUND = "NOT_FOUND" string NOT_UPDATED = "NOT_UPDATED" string NOT_VALID = "NOT_VALID" string PROCESSING = "PROCESSING" string SUCCESS = "SUCCESS" string UPDATED = "UPDATED" string VALID = "VALID" Domain\Payload\WriteableInterface¶
Interface Source on GitHub
This interface is used for consumers (write)
Phalcon\Domain\Payload\WriteableInterface
Uses Throwable
Method Summary¶
public PayloadInterface setException( Throwable $exception ) Sets an exception produced by the domain layer. public PayloadInterface setExtras( mixed $extras ) Sets arbitrary extra values produced by the domain layer. public PayloadInterface setInput( mixed $input ) Sets the input received by the domain layer. public PayloadInterface setMessages( mixed $messages ) Sets the messages produced by the domain layer. public PayloadInterface setOutput( mixed $output ) Sets the output produced from the domain layer. public PayloadInterface setStatus( mixed $status ) Sets the status of this payload. Methods¶
setException()¶
Sets an exception produced by the domain layer.
setExtras()¶
Sets arbitrary extra values produced by the domain layer.
setInput()¶
Sets the input received by the domain layer.
setMessages()¶
Sets the messages produced by the domain layer.
setOutput()¶
Sets the output produced from the domain layer.
setStatus()¶
Sets the status of this payload.