Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7486344
BuilderRegistry.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
620 B
Referenced Files
None
Subscribers
None
BuilderRegistry.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Endroid\QrCode\Builder
;
final
class
BuilderRegistry
implements
BuilderRegistryInterface
{
/** @var array<BuilderInterface> */
private
array
$builders
=
[];
public
function
getBuilder
(
string
$name
):
BuilderInterface
{
if
(!
isset
(
$this
->
builders
[
$name
]))
{
throw
new
\Exception
(
sprintf
(
'Builder with name "%s" not available from registry'
,
$name
));
}
return
$this
->
builders
[
$name
];
}
public
function
addBuilder
(
string
$name
,
BuilderInterface
$builder
):
void
{
$this
->
builders
[
$name
]
=
$builder
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 15:24 (6 d, 22 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b9/97/cb7a58df0af774d93239ca047ac2
Default Alt Text
BuilderRegistry.php (620 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment