Pyrech\ComposerChangelogs\Config\ConfigLocator::getPath PHP Метод

getPath() публичный Метод

public getPath ( string $key ) : string | null
$key string
Результат string | null mixed
    public function getPath($key)
    {
        $this->locate($key);
        return $this->cache[$key]['path'];
    }

Usage Example

 public function test_it_does_not_locate_non_existing_config()
 {
     $key = 'my-non-existing-config';
     static::assertFalse($this->SUT->locate($key));
     static::assertNull($this->SUT->getPath($key));
     static::assertSame([], $this->SUT->getConfig($key));
 }
All Usage Examples Of Pyrech\ComposerChangelogs\Config\ConfigLocator::getPath