summaryrefslogtreecommitdiff
path: root/tests/Unit/Models/Stub/BaseModelImplementation.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-09-30 19:31:14 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-09-30 19:33:14 +0200
commitb46207f91176cf944284c01c213d3f69075377a4 (patch)
tree3d04a46c84c8b66b2d5a56a851249fde80257e28 /tests/Unit/Models/Stub/BaseModelImplementation.php
parent6187eed3bb08f200050a3078bd762b5731dfbe78 (diff)
parent0b0890f425ced27b2204a046296de4cccdac4eb8 (diff)
Merge remote-tracking branch 'MyIgel/session'
Diffstat (limited to 'tests/Unit/Models/Stub/BaseModelImplementation.php')
-rw-r--r--tests/Unit/Models/Stub/BaseModelImplementation.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/Unit/Models/Stub/BaseModelImplementation.php b/tests/Unit/Models/Stub/BaseModelImplementation.php
index 4aa1ef0b..70643b03 100644
--- a/tests/Unit/Models/Stub/BaseModelImplementation.php
+++ b/tests/Unit/Models/Stub/BaseModelImplementation.php
@@ -3,6 +3,7 @@
namespace Engelsystem\Test\Unit\Models\Stub;
use Engelsystem\Models\BaseModel;
+use Illuminate\Database\Eloquent\Builder as QueryBuilder;
/**
* @property string foo
@@ -15,6 +16,9 @@ class BaseModelImplementation extends BaseModel
/** @var int */
public $saveCount = 0;
+ /** @var QueryBuilder */
+ public static $queryBuilder = null;
+
/**
* @param array $options
* @return bool
@@ -24,4 +28,12 @@ class BaseModelImplementation extends BaseModel
$this->saveCount++;
return true;
}
+
+ /**
+ * @return QueryBuilder
+ */
+ public static function query()
+ {
+ return self::$queryBuilder;
+ }
}