zalazdi

Untitled

Mar 8th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.87 KB | None | 0 0
  1. <?PHP
  2.  
  3. namespace App\Contracts;
  4.  
  5. use App\Entities\User;
  6.  
  7. interface WorkerContract extends UserContract
  8. {
  9.     /**
  10.      * Find all current workers
  11.      *
  12.      * @return \Illuminate\Database\Eloquent\Collection
  13.      */
  14.     public function findCurrent();
  15.  
  16.     /**
  17.      * Find all dismissed workers
  18.      *
  19.      * @return \Illuminate\Database\Eloquent\Collection
  20.      */
  21.     public function findDismissed();
  22.  
  23.     /**
  24.      * Find all banned workers (soft deleted)
  25.      *
  26.      * @return \Illuminate\Database\Eloquent\Collection
  27.      */
  28.     public function findBanned();
  29.  
  30.     /**
  31.      * Hire new or former worker
  32.      *
  33.      * @param User $worker
  34.      * @return boolean
  35.      */
  36.     public function hire(User $worker);
  37.  
  38.     /**
  39.      * Dismiss worker
  40.      *
  41.      * @param User $worker
  42.      * @return boolean
  43.      */
  44.     public function dismiss(User $worker);
  45. }
Advertisement
Add Comment
Please, Sign In to add comment