Source
in package
implements
ArrayAccess
Tags
Interfaces, Classes and Traits
- ArrayAccess
Table of Contents
- $dsn : Dsn
- $paths : array<string|int, Path>
- __construct() : mixed
- dsn() : Dsn
- globPatterns() : array<string|int, string>
- offsetExists() : bool
- offsetGet() : array<string|int, Path>|Dsn
- offsetSet() : void
- offsetUnset() : void
- paths() : array<string|int, Path>
- withDsn() : Source
- withPaths() : Source
- normalizePath() : string
- pathToGlobPattern() : string
Properties
$dsn
private
Dsn
$dsn
$paths
private
array<string|int, Path>
$paths
Methods
__construct()
public
__construct(Dsn $dsn, array<string|int, Path> $paths) : mixed
Parameters
Return values
mixed —dsn()
public
dsn() : Dsn
Return values
Dsn —globPatterns()
public
globPatterns() : array<string|int, string>
Return values
array<string|int, string> —offsetExists()
public
offsetExists(string $offset) : bool
Parameters
- $offset : string
Return values
bool —offsetGet()
public
offsetGet(string $offset) : array<string|int, Path>|Dsn
Parameters
- $offset : string
Return values
array<string|int, Path>|Dsn —offsetSet()
public
offsetSet(string $offset, mixed $value) : void
Parameters
- $offset : string
- $value : mixed
Return values
void —offsetUnset()
public
offsetUnset(string $offset) : void
Parameters
- $offset : string
Return values
void —paths()
public
paths() : array<string|int, Path>
Return values
array<string|int, Path> —withDsn()
public
withDsn(Dsn $dsn) : Source
Parameters
- $dsn : Dsn
Return values
Source —withPaths()
public
withPaths(array<string|int, Path> $paths) : Source
Parameters
- $paths : array<string|int, Path>
Return values
Source —normalizePath()
private
normalizePath(string $path) : string
Parameters
- $path : string
Return values
string —pathToGlobPattern()
private
pathToGlobPattern(string $path) : string
Parameters
- $path : string