forked from eatvio/eatvio-infra
22 lines
483 B
PHP
22 lines
483 B
PHP
<?php
|
|
|
|
namespace App\Services\Strategy\Criteried;
|
|
|
|
use App\Models\BlogPost;
|
|
use App\Models\Recipe;
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
|
|
|
class DefaultCriteriaStrategy implements CriteriaStrategy
|
|
{
|
|
public function getBlogPosts(): Builder|BlogPost|MorphToMany|array
|
|
{
|
|
return new BlogPost();
|
|
}
|
|
|
|
public function getRecipes(): Builder|Recipe|MorphToMany|array
|
|
{
|
|
return new Recipe();
|
|
}
|
|
}
|