From 670d7a07307fa461648a3641b93d5b66aa1df560 Mon Sep 17 00:00:00 2001 From: Arsen Mirzaev Tatyano-Muradovich Date: Wed, 24 Dec 2025 22:23:00 +0500 Subject: [PATCH] commits merging 2 --- mirzaev/record/system/interfaces/record.php | 8 +++++++- mirzaev/record/system/traits/record.php | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mirzaev/record/system/interfaces/record.php b/mirzaev/record/system/interfaces/record.php index 1ba79ba..bdf0e9a 100755 --- a/mirzaev/record/system/interfaces/record.php +++ b/mirzaev/record/system/interfaces/record.php @@ -4,6 +4,9 @@ declare(strict_types=1); namespace mirzaev\record\interfaces; +// Baza database +use mirzaev\baza\record as baza_record; + // Built-in libraries use InvalidArgumentException as exception_invalid_argument; @@ -16,6 +19,7 @@ use InvalidArgumentException as exception_invalid_argument; * * @package mirzaev\record\interfaces * + * @method void __construct(record|null $record) Constructor * @method static|false read(callable $filter) Read from the database * @method static|false update() Update the record in the database * @@ -29,9 +33,11 @@ interface record * * @throws exception_invalid_argument If not initialized the database columns parameters * + * @param baza_record|null $record The record + * * @return void */ - public function __construct(); + public function __construct(?baza_record $record = null); /** * Read diff --git a/mirzaev/record/system/traits/record.php b/mirzaev/record/system/traits/record.php index 742058e..538a425 100755 --- a/mirzaev/record/system/traits/record.php +++ b/mirzaev/record/system/traits/record.php @@ -51,11 +51,11 @@ trait record /** * Constructor * - * @method record|null $record The record + * @method baza_record|null $record The record * * @return void */ - public function __construct(?record $record = null) + public function __construct(?baza_record $record = null) { // Initializing the database /* $this->database = new database()