mirror of
https://github.com/openclassify/openclassify.git
synced 2026-03-12 19:23:52 -05:00
19 lines
382 B
PHP
19 lines
382 B
PHP
<?php namespace Visiosoft\AdvsModule\Adv\Command;
|
|
|
|
use Visiosoft\AdvsModule\Adv\Contract\AdvRepositoryInterface;
|
|
|
|
class GetUserAds
|
|
{
|
|
protected $userID;
|
|
|
|
public function __construct($userID)
|
|
{
|
|
$this->userID = $userID;
|
|
}
|
|
|
|
public function handle(AdvRepositoryInterface $advRepository)
|
|
{
|
|
return $advRepository->getUserAds($this->userID);
|
|
}
|
|
}
|