Alimentalos/Backend

View on GitHub
app/Repositories/GeofencesRepository.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Repositories;

use Alimentalos\Relationships\Lists\GeofenceList;
use App\Models\Geofence;
use Alimentalos\Relationships\Procedures\GeofenceProcedure;

class GeofencesRepository
{
    use GeofenceProcedure;
    use GeofenceList;

    /**
     * Create geofence.
     *
     * @return Geofence
     */
    public function create()
    {
        return $this->createInstance();
    }

    /**
     * Update geofence.
     *
     * @param Geofence $geofence
     * @return Geofence
     */
    public function update(Geofence $geofence)
    {
        return $this->updateInstance($geofence);
    }
}