NewProductCommentService
in package
Table of Contents
Properties
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
Methods
- __construct() : mixed
- NewProductCommentService constructor.
- add() : NewProductComment
- getRepo() : NewProductCommentRepository
- save() : NewProductComment
- Save a NewProductComment
Properties
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
Methods
__construct()
NewProductCommentService constructor.
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
add()
public
add(NewProduct $newProduct, string $comment, User $user) : NewProductComment
Parameters
- $newProduct : NewProduct
- $comment : string
- $user : User
Return values
NewProductCommentgetRepo()
public
getRepo() : NewProductCommentRepository
Return values
NewProductCommentRepositorysave()
Save a NewProductComment
public
save(NewProductComment $newProductComment) : NewProductComment
Parameters
- $newProductComment : NewProductComment