Source
in package
implements
ArrayAccess
FinalYes
Table of Contents
Interfaces
- ArrayAccess
Properties
Methods
- __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, mixed>
$paths
Methods
__construct()
public
__construct(Dsn $dsn, array<string|int, Path> $paths) : mixed
Parameters
dsn()
public
dsn() : Dsn
Return values
DsnglobPatterns()
public
globPatterns() : array<string|int, string>
Return values
array<string|int, string>offsetExists()
public
offsetExists(string $offset) : bool
Parameters
- $offset : string
Attributes
- #[ReturnTypeWillChange]
Return values
booloffsetGet()
public
offsetGet(string $offset) : array<string|int, Path>|Dsn
Parameters
- $offset : string
Attributes
- #[ReturnTypeWillChange]
Return values
array<string|int, Path>|DsnoffsetSet()
public
offsetSet(string $offset, mixed $value) : void
Parameters
- $offset : string
- $value : mixed
Attributes
- #[ReturnTypeWillChange]
offsetUnset()
public
offsetUnset(string $offset) : void
Parameters
- $offset : string
Attributes
- #[ReturnTypeWillChange]
paths()
public
paths() : array<string|int, Path>
Return values
array<string|int, Path>withDsn()
public
withDsn(Dsn $dsn) : Source
Parameters
- $dsn : Dsn
Return values
SourcewithPaths()
public
withPaths(array<string|int, Path> $paths) : Source
Parameters
- $paths : array<string|int, Path>
Return values
SourcenormalizePath()
private
normalizePath(string $path) : string
Parameters
- $path : string
Return values
stringpathToGlobPattern()
private
pathToGlobPattern(string $path) : string
Parameters
- $path : string