diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-31 01:55:05 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-31 03:24:54 +0200 |
commit | ac48332166ce28fcb1a2fc130c7f5adbc760e42d (patch) | |
tree | 1ff076a6a1c5a35b4ad73477d60cbcb77ebfd922 /tests/Unit/Models/Stub | |
parent | 9d9aa71eb736885f23c069a75c7a047b06434178 (diff) |
Models: Added LogEntry model
Diffstat (limited to 'tests/Unit/Models/Stub')
-rw-r--r-- | tests/Unit/Models/Stub/BaseModelImplementation.php | 27 |
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; + } +} |