TruckService
in package
Class TruckService
Table of Contents
Properties
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
Methods
- __construct() : mixed
- getRepo() : TruckRepository
- save() : Truck
- Save
Properties
$container
protected
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
Methods
__construct()
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
getRepo()
public
getRepo() : TruckRepository
Return values
TruckRepositorysave()
Save
public
save(Truck $truck) : Truck
Parameters
- $truck : Truck