for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the core-bundle package.
*
* (c) 2019 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\CoreBundle\Model;
use JsonSerializable;
/**
* Action response.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Bundle\CoreBundle\Model
class ActionResponse implements JsonSerializable {
* Notify.
* @var string
private $notify;
* Status.
* @var int
private $status;
* Constructor.
* @param int $status The status.
* @param string $notify The notify.
public function __construct($status = null, $notify = null) {
$this->setNotify($notify);
$this->setStatus($status);
}
* Get the notify.
* @return string Returns the notify.
public function getNotify() {
return $this->notify;
* Get the status.
* @return int Returns the status.
public function getStatus() {
return $this->status;
* {@inheritdoc}
public function jsonSerialize() {
return [
"status" => $this->getStatus(),
"notify" => $this->getNotify(),
];
* Set the notify.
* @return ActionResponse Returns this action response.
public function setNotify($notify) {
$this->notify = $notify;
return $this;
* Set the status.
public function setStatus($status) {
$this->status = $status;