Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 670d7a0730 |
@@ -4,6 +4,9 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace mirzaev\record\interfaces;
|
namespace mirzaev\record\interfaces;
|
||||||
|
|
||||||
|
// Baza database
|
||||||
|
use mirzaev\baza\record as baza_record;
|
||||||
|
|
||||||
// Built-in libraries
|
// Built-in libraries
|
||||||
use InvalidArgumentException as exception_invalid_argument;
|
use InvalidArgumentException as exception_invalid_argument;
|
||||||
|
|
||||||
@@ -16,6 +19,7 @@ use InvalidArgumentException as exception_invalid_argument;
|
|||||||
*
|
*
|
||||||
* @package mirzaev\record\interfaces
|
* @package mirzaev\record\interfaces
|
||||||
*
|
*
|
||||||
|
* @method void __construct(record|null $record) Constructor
|
||||||
* @method static|false read(callable $filter) Read from the database
|
* @method static|false read(callable $filter) Read from the database
|
||||||
* @method static|false update() Update the record in 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
|
* @throws exception_invalid_argument If not initialized the database columns parameters
|
||||||
*
|
*
|
||||||
|
* @param baza_record|null $record The record
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct();
|
public function __construct(?baza_record $record = null);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read
|
* Read
|
||||||
|
|||||||
@@ -51,11 +51,11 @@ trait record
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @method record|null $record The record
|
* @method baza_record|null $record The record
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct(?record $record = null)
|
public function __construct(?baza_record $record = null)
|
||||||
{
|
{
|
||||||
// Initializing the database
|
// Initializing the database
|
||||||
/* $this->database = new database()
|
/* $this->database = new database()
|
||||||
|
|||||||
Reference in New Issue
Block a user