0 follower

Final Class Yiisoft\Config\Composer\PackageFile

InheritanceYiisoft\Config\Composer\PackageFile

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( Yiisoft\Config\Composer\ConfigSettings $configSettings, string $absolutePath )
$configSettings Yiisoft\Config\Composer\ConfigSettings
$absolutePath string

                public function __construct(
    ConfigSettings $configSettings,
    private readonly string $absolutePath,
) {
    $this->filename = str_replace($configSettings->configPath() . '/', '', $absolutePath);
    $this->relativePath = str_replace($configSettings->path() . '/', '', $absolutePath);
}

            
absolutePath() public method

public string absolutePath ( )

                public function absolutePath(): string
{
    return $this->absolutePath;
}

            
filename() public method

public string filename ( )

                public function filename(): string
{
    return $this->filename;
}

            
relativePath() public method

public string relativePath ( )

                public function relativePath(): string
{
    return $this->relativePath;
}