EntityManagerHelper
extends Helper
in package
Doctrine CLI Connection Helper.
Tags
Table of Contents
- $_em : EntityManagerInterface
- Doctrine ORM EntityManagerInterface.
- $helperSet : mixed
- __construct() : mixed
- formatMemory() : mixed
- formatTime() : mixed
- getEntityManager() : EntityManagerInterface
- Retrieves Doctrine ORM EntityManager.
- getHelperSet() : HelperSet
- Gets the helper set associated with this helper.
- getName() : string
- {@inheritdoc}
- removeDecoration() : mixed
- setHelperSet() : mixed
- Sets the helper set associated with this helper.
- strlen() : int
- Returns the length of a string, using mb_strwidth if it is available.
- strlenWithoutDecoration() : mixed
- substr() : string
- Returns the subset of a string, using mb_substr if it is available.
Properties
$_em
Doctrine ORM EntityManagerInterface.
protected
EntityManagerInterface
$_em
$helperSet
protected
mixed
$helperSet
= null
Methods
__construct()
public
__construct(EntityManagerInterface $em) : mixed
Parameters
- $em : EntityManagerInterface
Return values
mixed —formatMemory()
public
static formatMemory(mixed $memory) : mixed
Parameters
- $memory : mixed
Return values
mixed —formatTime()
public
static formatTime(mixed $secs) : mixed
Parameters
- $secs : mixed
Return values
mixed —getEntityManager()
Retrieves Doctrine ORM EntityManager.
public
getEntityManager() : EntityManagerInterface
Return values
EntityManagerInterface —getHelperSet()
Gets the helper set associated with this helper.
public
getHelperSet() : HelperSet
Return values
HelperSet —A HelperSet instance
getName()
{@inheritdoc}
public
getName() : string
Return values
string —removeDecoration()
public
static removeDecoration(OutputFormatterInterface $formatter, mixed $string) : mixed
Parameters
- $formatter : OutputFormatterInterface
- $string : mixed
Return values
mixed —setHelperSet()
Sets the helper set associated with this helper.
public
setHelperSet([HelperSet $helperSet = null ]) : mixed
Parameters
- $helperSet : HelperSet = null
Return values
mixed —strlen()
Returns the length of a string, using mb_strwidth if it is available.
public
static strlen(string $string) : int
Parameters
- $string : string
-
The string to check its length
Return values
int —The length of the string
strlenWithoutDecoration()
public
static strlenWithoutDecoration(OutputFormatterInterface $formatter, mixed $string) : mixed
Parameters
- $formatter : OutputFormatterInterface
- $string : mixed
Return values
mixed —substr()
Returns the subset of a string, using mb_substr if it is available.
public
static substr(string $string, int $from[, int|null $length = null ]) : string
Parameters
- $string : string
-
String to subset
- $from : int
-
Start offset
- $length : int|null = null
-
Length to read
Return values
string —The string subset