Exakat\Tasks\Status::getErrors PHP Метод

getErrors() приватный Метод

private getErrors ( $path )
    private function getErrors($path)
    {
        $errors = array();
        // Init error
        $e = $this->datastore->getHash('init error');
        if (!empty($e)) {
            $errors['init error'] = $e;
            return $errors;
        }
        // Size error
        $e = $this->datastore->getHash('token error');
        if (!empty($e)) {
            $errors['init error'] = $e;
            return $errors;
        }
        return $errors;
    }