12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace App\Http\Logic;
- class BaseLogic
- {
- private $code = 500;
- private $error = "";
- /**
- * @return int
- */
- public function getCode(): int
- {
- return $this->code;
- }
- /**
- * @param int $code
- */
- public function setCode(int $code): void
- {
- $this->code = $code;
- }
- /**
- * @return string
- */
- public function getError(): string
- {
- return $this->error;
- }
- /**
- * @param string $error
- */
- public function setError(string $error): void
- {
- $this->error = $error;
- }
- }
|