SmsService
extends TransactionalService
in package
Class SmsService `
Table of Contents
Properties
- $container : ContainerInterface
- $em : EntityManager
Methods
- addRepository() : void
- Add a repository to this service
- addService() : void
- Add a service to this service
- cleanMessage() : mixed
- getEntityManager() : EntityManager
- Getter of the Entity Manager
- send() : bool|mixed
- setEntityManager() : mixed
- Setter of the Entity Manager
Properties
$container
protected
ContainerInterface
$container
$em
protected
EntityManager
$em
The Entity Manager
Methods
addRepository()
Add a repository to this service
public
addRepository(int $key, string $class) : void
Parameters
- $key : int
-
Key
- $class : string
-
Class
addService()
Add a service to this service
public
addService(int $key, mixed $service) : void
Parameters
- $key : int
-
Key
- $service : mixed
cleanMessage()
public
cleanMessage(mixed $message[, array<string|int, mixed> $params = [] ]) : mixed
Parameters
- $message : mixed
- $params : array<string|int, mixed> = []
getEntityManager()
Getter of the Entity Manager
public
getEntityManager() : EntityManager
Return values
EntityManagersend()
public
send(mixed $phone, mixed $message[, mixed $params = [] ][, mixed $from = 'Menzzo' ]) : bool|mixed
Parameters
- $phone : mixed
- $message : mixed
- $params : mixed = []
- $from : mixed = 'Menzzo'
Return values
bool|mixedsetEntityManager()
Setter of the Entity Manager
public
setEntityManager(EntityManager $em) : mixed
Parameters
- $em : EntityManager
-
the Entity Manager