Provides functions to assure values are allowable repository names in Wikibase.
More...
Provides functions to assure values are allowable repository names in Wikibase.
- See also
- docs/foreign-entity-ids.wiki
-
\Wikimedia\Assert\Assert
- Since
- 6.3
- Copyright
- GPL-2.0-or-later
◆ assertParameterIsValidRepositoryName()
static Wikibase\DataModel\Assert\RepositoryNameAssert::assertParameterIsValidRepositoryName |
( |
|
$value, |
|
|
|
$name |
|
) |
| |
|
static |
- Since
- 6.3
- Parameters
-
string | $value | The actual value of the parameter |
string | $name | The name of the parameter being checked |
- Exceptions
-
ParameterAssertionException | If $value is not a valid repository name. |
◆ assertParameterKeysAreValidRepositoryNames()
static Wikibase\DataModel\Assert\RepositoryNameAssert::assertParameterKeysAreValidRepositoryNames |
( |
|
$values, |
|
|
|
$name |
|
) |
| |
|
static |
- Since
- 6.3
- Parameters
-
array | $values | The actual value of the parameter. If this is not an array, a ParameterTypeException is thrown. |
string | $name | The name of the parameter being checked |
- Exceptions
-
ParameterAssertionException | If any element of $values is not a valid repository name. |
◆ isValidRepositoryName()
static Wikibase\DataModel\Assert\RepositoryNameAssert::isValidRepositoryName |
( |
|
$value | ) |
|
|
staticprivate |
The documentation for this class was generated from the following file: