<?php
namespace Fourtwosix\StatusBundle\Classes;
class StatusModel
{
protected string $name;
protected string $code;
protected bool $success;
/** @var array|object|bool|string */
protected object|bool|array|string $message = "";
/** @var array|object|bool|string|null */
protected object|bool|array|string|null $data = null;
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @param string $name
* @return StatusModel
*/
public function setName(string $name): StatusModel
{
$this->name = $name;
return $this;
}
/**
* @return string
*/
public function getCode(): string
{
return $this->code;
}
/**
* @param string $code
* @return StatusModel
*/
public function setCode(string $code): StatusModel
{
$this->code = $code;
return $this;
}
/**
* @return bool
*/
public function isSuccess(): bool
{
return $this->success;
}
/**
* @param bool $success
* @return StatusModel
*/
public function setSuccess(bool $success): StatusModel
{
$this->success = $success;
return $this;
}
/**
* @return object|bool|array|string
*/
public function getMessage(): object|bool|array|string
{
return $this->message;
}
/**
* @param mixed $message
* @return StatusModel
*/
public function setMessage(object|bool|array|string $message): StatusModel
{
$this->message = $message;
return $this;
}
/**
* @return object|bool|array|string|null
*/
public function getData(): object|null|bool|array|string
{
return $this->data;
}
/**
* @param mixed $data
* @return StatusModel
*/
public function setData(object|bool|array|string|null $data): StatusModel
{
$this->data = $data;
return $this;
}
}