Psr4FilePersister
in package
FinalYes
PSR-4 compliant {@PhpFile} persister.
Table of Contents
Properties
Methods
- __construct() : mixed
- persist() : array{class-string, non-empty-string}
- resolveFilePath() : array{class-string, non-empty-string}|null
Properties
$namespacePathResolver
private
NamespacePsr4PathResolver
$namespacePathResolver
Methods
__construct()
public
__construct(NamespacePsr4PathResolver $namespacePathResolver) : mixed
Parameters
- $namespacePathResolver : NamespacePsr4PathResolver
persist()
public
persist(PhpFile $phpFile) : array{class-string, non-empty-string}
Parameters
- $phpFile : PhpFile
Return values
array{class-string, non-empty-string}resolveFilePath()
private
resolveFilePath(PhpNamespace $namespace) : array{class-string, non-empty-string}|null
Parameters
- $namespace : PhpNamespace