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