Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- namespace App\Contracts;
- use App\Entities\User;
- interface WorkerContract extends UserContract
- {
- /**
- * Find all current workers
- *
- * @return \Illuminate\Database\Eloquent\Collection
- */
- public function findCurrent();
- /**
- * Find all dismissed workers
- *
- * @return \Illuminate\Database\Eloquent\Collection
- */
- public function findDismissed();
- /**
- * Find all banned workers (soft deleted)
- *
- * @return \Illuminate\Database\Eloquent\Collection
- */
- public function findBanned();
- /**
- * Hire new or former worker
- *
- * @param User $worker
- * @return boolean
- */
- public function hire(User $worker);
- /**
- * Dismiss worker
- *
- * @param User $worker
- * @return boolean
- */
- public function dismiss(User $worker);
- }
Advertisement
Add Comment
Please, Sign In to add comment