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.

CamerasBusiness.php 660B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Http\Business;
  3. use app\Http\Business\Camera\AbstractCamera;
  4. use App\Http\DBO\CamerasDbo;
  5. use app\Http\DBO\CamerasImageDbo;
  6. use App\Http\DBO\CameraTypesDbo;
  7. /**
  8. * Created by PhpStorm.
  9. * User: robin
  10. * Date: 11/23/15
  11. * Time: 11:59 PM
  12. */
  13. class CamerasBusiness
  14. {
  15. /**
  16. * @param CamerasDbo $camera
  17. * @param CameraTypesDbo $type
  18. * @return CamerasImageDbo
  19. */
  20. public static function getImage(CamerasDbo $camera, CameraTypesDbo $type)
  21. {
  22. /**
  23. * @var $sens AbstractCamera
  24. */
  25. $class = $type->getClass();
  26. $sens = new $class($camera);
  27. return $sens->getImage();
  28. }
  29. }