exampleapp/modules/Src/TraitDomain.php

33 lines
536 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Modules\Src;
trait TraitDomain
{
/**
* Сообщения об ошибках
* @var array
*/
protected array $errors = [];
/**
* @var int код ответа
*/
protected int $responseCode = ResponsesCode::OK_CODE;
/**
* Сообщения об ошибках
* @return array
*/
public function getErrors(): array
{
return $this->errors;
}
public function getResponseCode(): int
{
return $this->responseCode;
}
}