| 1 | <?php |
||
| 16 | class ListUsersTask extends Action |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var \App\Containers\User\Contracts\UserRepositoryInterface |
||
| 21 | */ |
||
| 22 | private $userRepository; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * ListAndSearchUsersAction constructor. |
||
| 26 | * |
||
| 27 | * @param \App\Containers\User\Contracts\UserRepositoryInterface $userRepository |
||
| 28 | */ |
||
| 29 | public function __construct(UserRepositoryInterface $userRepository) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * The search text is auto-magically applied. |
||
| 36 | * |
||
| 37 | * @param bool|true $order |
||
| 38 | * |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | public function run($order = true, $roles = null) |
||
| 55 | } |
||
| 56 |