EntityManagerHelper
extends Helper
in package
Doctrine CLI Connection Helper.
Tags
Table of Contents
Properties
- $_em : EntityManagerInterface
- Doctrine ORM EntityManagerInterface.
- $helperSet : mixed
Methods
- __construct() : mixed
- formatMemory() : mixed
- formatTime() : mixed
- getEntityManager() : EntityManagerInterface
- Retrieves Doctrine ORM EntityManager.
- getHelperSet() : HelperSet|null
- Gets the helper set associated with this helper.
- getName() : string
- {@inheritDoc}
- length() : int
- Returns the length of a string, using mb_strlen if it is available.
- removeDecoration() : mixed
- setHelperSet() : mixed
- Sets the helper set associated with this helper.
- substr() : string
- Returns the subset of a string, using mb_substr if it is available.
- width() : int
- Returns the width of a string, using mb_strwidth 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
formatMemory()
public
static formatMemory(int $memory) : mixed
Parameters
- $memory : int
formatTime()
public
static formatTime(int|float $secs) : mixed
Parameters
- $secs : int|float
getEntityManager()
Retrieves Doctrine ORM EntityManager.
public
getEntityManager() : EntityManagerInterface
Return values
EntityManagerInterfacegetHelperSet()
Gets the helper set associated with this helper.
public
getHelperSet() : HelperSet|null
Return values
HelperSet|nullgetName()
{@inheritDoc}
public
getName() : string
Return values
stringlength()
Returns the length of a string, using mb_strlen if it is available.
public
static length(string|null $string) : int
The length is related to how many bytes the string will use.
Parameters
- $string : string|null
Return values
intremoveDecoration()
public
static removeDecoration(OutputFormatterInterface $formatter, string|null $string) : mixed
Parameters
- $formatter : OutputFormatterInterface
- $string : string|null
setHelperSet()
Sets the helper set associated with this helper.
public
setHelperSet([HelperSet $helperSet = null ]) : mixed
Parameters
- $helperSet : HelperSet = null
substr()
Returns the subset of a string, using mb_substr if it is available.
public
static substr(string|null $string, int $from[, int $length = null ]) : string
Parameters
- $string : string|null
- $from : int
- $length : int = null
Return values
stringwidth()
Returns the width of a string, using mb_strwidth if it is available.
public
static width(string|null $string) : int
The width is how many characters positions the string will use.
Parameters
- $string : string|null