34 lines
654 B
PHP
34 lines
654 B
PHP
<?php
|
|
|
|
namespace Engelsystem\Test\Unit\Models\Stub;
|
|
|
|
use Engelsystem\Models\BaseModel;
|
|
use Illuminate\Database\Eloquent\Builder as QueryBuilder;
|
|
|
|
/**
|
|
* @property string foo
|
|
*/
|
|
class BaseModelImplementation extends BaseModel
|
|
{
|
|
/** @var array<string> */
|
|
protected $fillable = ['foo']; // phpcs:ignore
|
|
|
|
public int $saveCount = 0;
|
|
|
|
public static QueryBuilder $queryBuilder = null;
|
|
|
|
/**
|
|
* @param array $options
|
|
*/
|
|
public function save(array $options = []): bool
|
|
{
|
|
$this->saveCount++;
|
|
return true;
|
|
}
|
|
|
|
public static function query(): QueryBuilder
|
|
{
|
|
return self::$queryBuilder;
|
|
}
|
|
}
|