Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Assert\RepositoryNameAssert Class Reference

Provides functions to assure values are allowable repository names in Wikibase. More...

Static Public Member Functions

static assertParameterIsValidRepositoryName ( $value, $name)
 
static assertParameterKeysAreValidRepositoryNames ( $values, $name)
 

Static Private Member Functions

static isValidRepositoryName ( $value)
 

Detailed Description

Provides functions to assure values are allowable repository names in Wikibase.

See also
docs/foreign-entity-ids.wiki
\Wikimedia\Assert\Assert
Since
6.3

Member Function Documentation

◆ assertParameterIsValidRepositoryName()

static Wikibase\DataModel\Assert\RepositoryNameAssert::assertParameterIsValidRepositoryName (   $value,
  $name 
)
static
Since
6.3
Parameters
string$valueThe actual value of the parameter
string$nameThe name of the parameter being checked
Exceptions
ParameterAssertionExceptionIf $value is not a valid repository name.

◆ assertParameterKeysAreValidRepositoryNames()

static Wikibase\DataModel\Assert\RepositoryNameAssert::assertParameterKeysAreValidRepositoryNames (   $values,
  $name 
)
static
Since
6.3
Parameters
array$valuesThe actual value of the parameter. If this is not an array, a ParameterTypeException is thrown.
string$nameThe name of the parameter being checked
Exceptions
ParameterAssertionExceptionIf any element of $values is not a valid repository name.

◆ isValidRepositoryName()

static Wikibase\DataModel\Assert\RepositoryNameAssert::isValidRepositoryName (   $value)
staticprivate
Parameters
string$value
Returns
bool

The documentation for this class was generated from the following file: