���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/vendor/wikimedia/assert/src/ParameterAssertionException.php
���ѧ٧ѧ�
<?php namespace Wikimedia\Assert; use InvalidArgumentException; /** * Exception indicating that an parameter assertion failed. * This generally means a disagreement between the caller and the implementation of a function. * * @since 0.1.0 * * @license MIT * @author Daniel Kinzler * @copyright Wikimedia Deutschland e.V. */ class ParameterAssertionException extends InvalidArgumentException implements AssertionException { /** * @var string */ private $parameterName; /** * @param string $parameterName * @param string $description * * @throws ParameterTypeException */ public function __construct( $parameterName, $description ) { if ( !is_string( $parameterName ) ) { throw new ParameterTypeException( 'parameterName', 'string' ); } if ( !is_string( $description ) ) { throw new ParameterTypeException( 'description', 'string' ); } parent::__construct( "Bad value for parameter $parameterName: $description" ); $this->parameterName = $parameterName; } /** * @return string */ public function getParameterName(): string { return $this->parameterName; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.4 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�