You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: adrien.gandarias
  5. * Date: 08/04/2015
  6. * Time: 10:12
  7. */
  8. namespace App\Http\DAL;
  9. use App\Http\DAL\Models\User;
  10. class UserDAL
  11. {
  12. public static function getAll()
  13. {
  14. $user = User::all();
  15. if (is_null($user))
  16. return null;
  17. $tab = [];
  18. /* @var $user User[] */
  19. foreach ($user as $q) {
  20. $tab[] = $q->toBusinessModel();
  21. }
  22. return $tab;
  23. }
  24. }