35 lines
923 B
PHP
35 lines
923 B
PHP
<?php
|
|
|
|
namespace App\Service;
|
|
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
|
|
interface CustomerHandlerInterface
|
|
{
|
|
// initialize form to display customer list
|
|
public function initializeCustomerIndexForm();
|
|
|
|
// get customers
|
|
public function getCustomers(Request $req);
|
|
|
|
// initialize add customer form
|
|
public function initializeAddCustomerForm();
|
|
|
|
// add new customer and customer vehicle, if any
|
|
public function addCustomer(Request $req);
|
|
|
|
// initialize update customer form
|
|
public function initializeUpdateCustomerForm(int $id);
|
|
|
|
// update customer and customer vehicle
|
|
public function updateCustomer(Request $req, int $id);
|
|
|
|
// delete customer
|
|
public function deleteCustomer(int $id);
|
|
|
|
// get customer vehicles
|
|
public function getCustomerVehicles(Request $req);
|
|
|
|
// get customer vehicle info
|
|
public function getCustomerVehicleInfo(Request $req);
|
|
}
|