Corrected Problems

- Corrected type of config property.
- Added property declarations.
This commit is contained in:
objecttothis
2023-11-30 17:36:29 +04:00
committed by jekkos
parent 3890f50e77
commit 0a527abfa0
2 changed files with 18 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ use App\Models\Stock_location;
use App\Models\Supplier;
use App\Models\Tax_category;
use CodeIgniter\Model;
use Config\OSPOS;
use Config\Services;
use CodeIgniter\Images\Image;
@@ -39,6 +40,21 @@ require_once('Secure_Controller.php');
*/
class Items extends Secure_Controller
{
private object $image;
private Barcode_lib $barcode_lib;
private Item_lib $item_lib;
private Model $attribute;
private Model $inventory;
private Model $item;
private Model $item_kit;
private Model $item_quantity;
private Model $item_taxes;
private Model $stock_location;
private Model $supplier;
private Model $tax_category;
private array $config;
public function __construct()
{
parent::__construct('items');

View File

@@ -2,11 +2,12 @@
namespace App\Events;
use CodeIgniter\Config\BaseConfig;
use Config\Database;
class Db_log
{
private object $config;
private BaseConfig $config;
public function db_log_queries(): void
{