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.

AbstractModel.php 555B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Created by JetBrains PhpStorm.
  4. * User: cedric.schneider
  5. * Date: 16/04/15
  6. * Time: 12:00
  7. * To change this template use File | Settings | File Templates.
  8. */
  9. namespace App\Http\DAL\Models;
  10. use Illuminate\Database\Eloquent\Model;
  11. abstract class AbstractModel extends Model
  12. {
  13. /**
  14. * Mapping from DBO model to business model.
  15. * If this model has no DBO equivalent, do nothing in this function
  16. * @param Model $eloquentModel
  17. * @return \App\Http\DBO\AbstractModel
  18. */
  19. public abstract function toBusinessModel();
  20. }