123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace App\Http\Service;
- class BaseService
- {
- 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;
- }
- }
|