ProjectCapabilitiesResolverInterface

Interface

Resolves the effective documentation, testing, and wiki capabilities of the current repository.

Table of Contents

Constants

Methods

resolve()

Resolves which documentation, testing, and wiki surfaces are available for the current repository.

 : ProjectCapabilities
Constants

Constants

DEFAULT_GUIDE_DIRECTORY

Public
public string DEFAULT_GUIDE_DIRECTORY = 'docs'

Description

the default project-relative guide directory checked by repository capability discovery

DEFAULT_TESTS_PATH

Public
public string DEFAULT_TESTS_PATH = './tests'

Description

the default project-relative test directory checked by repository capability discovery

DEFAULT_WIKI_TARGET

Public
public string DEFAULT_WIKI_TARGET = '.github/wiki'

Description

the default project-relative wiki target used for generated API wiki output

Methods

resolve()

Public

Resolves which documentation, testing, and wiki surfaces are available for the current repository.

public resolve([ string  $testsPath = self::DEFAULT_TESTS_PATH][, string  $guideDirectory = self::DEFAULT_GUIDE_DIRECTORY][, string  $wikiTarget = self::DEFAULT_WIKI_TARGET]) : ProjectCapabilities
Parameters
$testsPath : string = self::DEFAULT_TESTS_PATH

Description

the project-relative tests directory to inspect

$guideDirectory : string = self::DEFAULT_GUIDE_DIRECTORY

Description

the project-relative guide directory to inspect

$wikiTarget : string = self::DEFAULT_WIKI_TARGET

Description

the project-relative wiki output target to inspect

Return values