rest_mediatekdocuments

RepositoryBuilder
in package

FinalYes

Table of Contents

Constants

DEFAULT_ADAPTERS  = [\Dotenv\Repository\Adapter\ServerConstAdapter::class, \Dotenv\Repository\Adapter\EnvConstAdapter::class]
The set of default adapters.

Properties

$allowList  : array<string|int, string>|null
The variable name allow list.
$immutable  : bool
Are we immutable?
$readers  : array<string|int, ReaderInterface>
The set of readers to use.
$writers  : array<string|int, WriterInterface>
The set of writers to use.

Methods

addAdapter()  : RepositoryBuilder
Creates a repository builder with the given adapter added.
addReader()  : RepositoryBuilder
Creates a repository builder with the given reader added.
addWriter()  : RepositoryBuilder
Creates a repository builder with the given writer added.
allowList()  : RepositoryBuilder
Creates a repository builder with the given allow list.
createWithDefaultAdapters()  : RepositoryBuilder
Create a new repository builder instance with the default adapters added.
createWithNoAdapters()  : RepositoryBuilder
Create a new repository builder instance with no adapters added.
immutable()  : RepositoryBuilder
Creates a repository builder with mutability enabled.
make()  : RepositoryInterface
Creates a new repository instance.
__construct()  : void
Create a new repository builder instance.
defaultAdapters()  : Generator<string|int, AdapterInterface>
Return the array of default adapters.
isAnAdapterClass()  : bool
Determine if the given name if of an adapterclass.

Constants

DEFAULT_ADAPTERS

The set of default adapters.

private mixed DEFAULT_ADAPTERS = [\Dotenv\Repository\Adapter\ServerConstAdapter::class, \Dotenv\Repository\Adapter\EnvConstAdapter::class]

Properties

$allowList

The variable name allow list.

private array<string|int, string>|null $allowList

Methods

addAdapter()

Creates a repository builder with the given adapter added.

public addAdapter(WriterInterface|string $adapter) : RepositoryBuilder

Accepts either an adapter instance, or a class-string for an adapter. If the adapter is not supported, then we silently skip adding it. We will add the adapter as both a reader and a writer.

Parameters
$adapter : WriterInterface|string
Tags
throws
InvalidArgumentException
Return values
RepositoryBuilder

allowList()

Creates a repository builder with the given allow list.

public allowList([array<string|int, string>|null $allowList = null ]) : RepositoryBuilder
Parameters
$allowList : array<string|int, string>|null = null
Return values
RepositoryBuilder

__construct()

Create a new repository builder instance.

private __construct([array<string|int, ReaderInterface$readers = [] ][, array<string|int, WriterInterface$writers = [] ][, bool $immutable = false ][, array<string|int, string>|null $allowList = null ]) : void
Parameters
$readers : array<string|int, ReaderInterface> = []
$writers : array<string|int, WriterInterface> = []
$immutable : bool = false
$allowList : array<string|int, string>|null = null

isAnAdapterClass()

Determine if the given name if of an adapterclass.

private static isAnAdapterClass(string $name) : bool
Parameters
$name : string
Return values
bool

        
On this page

Search results