diff --git a/Models/InterfaceManager.php b/Models/InterfaceManager.php index 4f847a1..c5a40ac 100755 --- a/Models/InterfaceManager.php +++ b/Models/InterfaceManager.php @@ -35,7 +35,7 @@ class InterfaceManager * @var int * @since 1.0.0 */ - private int $id = 0; + protected int $id = 0; /** * File path. diff --git a/Models/NullExchangeLog.php b/Models/NullExchangeLog.php index 3a89588..3692849 100755 --- a/Models/NullExchangeLog.php +++ b/Models/NullExchangeLog.php @@ -24,4 +24,16 @@ namespace Modules\Exchange\Models; */ final class NullExchangeLog extends ExchangeLog { + /** + * Constructor + * + * @param int $id Model id + * + * @since 1.0.0 + */ + public function __construct(int $id = 0) + { + $this->id = $id; + parent::__construct(); + } } diff --git a/Models/NullInterfaceManager.php b/Models/NullInterfaceManager.php index 13cb3b4..4d4c55a 100755 --- a/Models/NullInterfaceManager.php +++ b/Models/NullInterfaceManager.php @@ -24,4 +24,16 @@ namespace Modules\Exchange\Models; */ final class NullInterfaceManager extends InterfaceManager { + /** + * Constructor + * + * @param int $id Model id + * + * @since 1.0.0 + */ + public function __construct(int $id = 0) + { + $this->id = $id; + parent::__construct(); + } } diff --git a/tests/Models/NullExchangeLogTest.php b/tests/Models/NullExchangeLogTest.php new file mode 100644 index 0000000..f0998e8 --- /dev/null +++ b/tests/Models/NullExchangeLogTest.php @@ -0,0 +1,42 @@ +getId()); + } +} diff --git a/tests/Models/NullInterfaceManagerTest.php b/tests/Models/NullInterfaceManagerTest.php new file mode 100644 index 0000000..63e6d2b --- /dev/null +++ b/tests/Models/NullInterfaceManagerTest.php @@ -0,0 +1,42 @@ +getId()); + } +}