TranslatorBag
in package
implements
TranslatorBagInterface
FinalYes
Table of Contents
Interfaces
Properties
- $catalogues : array<string|int, MessageCatalogue>
Methods
- addBag() : void
- addCatalogue() : void
- diff() : self
- getCatalogue() : MessageCatalogueInterface
- Gets the catalogue by locale.
- getCatalogues() : array<string|int, MessageCatalogueInterface>
- Returns all catalogues of the instance.
- intersect() : self
Properties
$catalogues
private
array<string|int, MessageCatalogue>
$catalogues
= []
Methods
addBag()
public
addBag(TranslatorBagInterface $bag) : void
Parameters
- $bag : TranslatorBagInterface
addCatalogue()
public
addCatalogue(MessageCatalogue $catalogue) : void
Parameters
- $catalogue : MessageCatalogue
diff()
public
diff(TranslatorBagInterface $diffBag) : self
Parameters
- $diffBag : TranslatorBagInterface
Return values
selfgetCatalogue()
Gets the catalogue by locale.
public
getCatalogue([string $locale = null ]) : MessageCatalogueInterface
Parameters
- $locale : string = null
-
The locale or null to use the default
Return values
MessageCatalogueInterfacegetCatalogues()
Returns all catalogues of the instance.
public
getCatalogues() : array<string|int, MessageCatalogueInterface>
Return values
array<string|int, MessageCatalogueInterface>intersect()
public
intersect(TranslatorBagInterface $intersectBag) : self
Parameters
- $intersectBag : TranslatorBagInterface