| 1 | <?php |
||
| 13 | class FindUserService extends Service |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var \App\Containers\User\Contracts\UserRepositoryInterface |
||
| 18 | */ |
||
| 19 | private $userRepository; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * FindUserService constructor. |
||
| 23 | * |
||
| 24 | * @param \App\Containers\User\Contracts\UserRepositoryInterface $userRepository |
||
| 25 | */ |
||
| 26 | public function __construct(UserRepositoryInterface $userRepository) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param $id |
||
| 33 | * |
||
| 34 | * @return mixed |
||
| 35 | */ |
||
| 36 | public function byId($id) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param $visitorId |
||
| 46 | * |
||
| 47 | * @return mixed |
||
| 48 | */ |
||
| 49 | public function byVisitorId($visitorId) |
||
| 55 | } |
||
| 56 |