summaryrefslogtreecommitdiff
path: root/tests/Unit/Models/Stub/BaseModelImplementation.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Models/Stub/BaseModelImplementation.php')
-rw-r--r--tests/Unit/Models/Stub/BaseModelImplementation.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/Unit/Models/Stub/BaseModelImplementation.php b/tests/Unit/Models/Stub/BaseModelImplementation.php
new file mode 100644
index 00000000..4aa1ef0b
--- /dev/null
+++ b/tests/Unit/Models/Stub/BaseModelImplementation.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace Engelsystem\Test\Unit\Models\Stub;
+
+use Engelsystem\Models\BaseModel;
+
+/**
+ * @property string foo
+ */
+class BaseModelImplementation extends BaseModel
+{
+ /** @var array */
+ protected $fillable = ['foo'];
+
+ /** @var int */
+ public $saveCount = 0;
+
+ /**
+ * @param array $options
+ * @return bool
+ */
+ public function save(array $options = [])
+ {
+ $this->saveCount++;
+ return true;
+ }
+}