Phalcon domain
NOTE
All classes are prefixed with Phalcon
Domain\Payload\Payload¶
-
Namespace
Phalcon\Domain\Payload
-
Uses
Throwable
-
Extends
-
Implements
PayloadInterface
Holds the payload
Properties¶
/**
* Exception if any
*
* @var Throwable|null
*/
protected $exception;
/**
* Extra information
*
* @var mixed
*/
protected $extras;
/**
* Input
*
* @var mixed
*/
protected $input;
/**
* Messages
*
* @var mixed
*/
protected $messages;
/**
* Status
*
* @var mixed
*/
protected $status;
/**
* Output
*
* @var mixed
*/
protected $output;
Methods¶
Gets the potential exception thrown in the domain layer Extra information Input Messages Output Status Sets an exception thrown in the domain Sets arbitrary extra domain information. Sets the domain input. Sets the domain messages. Sets the domain output. Sets the payload status.Domain\Payload\PayloadFactory¶
-
Namespace
Phalcon\Domain\Payload
-
Uses
-
Extends
-
Implements
Factory to create payload objects
Methods¶
Instantiate a new objectDomain\Payload\PayloadInterface ¶
-
Namespace
Phalcon\Domain\Payload
-
Uses
-
Extends
ReadableInterface
-
Implements
This interface is used for consumers
Domain\Payload\ReadableInterface ¶
-
Namespace
Phalcon\Domain\Payload
-
Uses
Throwable
-
Extends
-
Implements
This interface is used for consumers (read only)
Methods¶
Gets the potential exception thrown in the domain layer Gets arbitrary extra values produced by the domain layer. Gets the input received by the domain layer. Gets the messages produced by the domain layer. Gets the output produced from the domain layer. Gets the status of this payload.Domain\Payload\Status¶
-
Namespace
Phalcon\Domain\Payload
-
Uses
-
Extends
-
Implements
Holds the status codes for the payload
Constants¶
const ACCEPTED = ACCEPTED;
const AUTHENTICATED = AUTHENTICATED;
const AUTHORIZED = AUTHORIZED;
const CREATED = CREATED;
const DELETED = DELETED;
const ERROR = ERROR;
const FAILURE = FAILURE;
const FOUND = FOUND;
const NOT_ACCEPTED = NOT_ACCEPTED;
const NOT_AUTHENTICATED = NOT_AUTHENTICATED;
const NOT_AUTHORIZED = NOT_AUTHORIZED;
const NOT_CREATED = NOT_CREATED;
const NOT_DELETED = NOT_DELETED;
const NOT_FOUND = NOT_FOUND;
const NOT_UPDATED = NOT_UPDATED;
const NOT_VALID = NOT_VALID;
const PROCESSING = PROCESSING;
const SUCCESS = SUCCESS;
const UPDATED = UPDATED;
const VALID = VALID;
Methods¶
Instantiation not allowed.Domain\Payload\WriteableInterface ¶
-
Namespace
Phalcon\Domain\Payload
-
Uses
Throwable
-
Extends
-
Implements
This interface is used for consumers (write)