本文整理匯總了PHP中Puli\Manager\Assert\Assert::notEq方法的典型用法代碼示例。如果您正苦於以下問題:PHP Assert::notEq方法的具體用法?PHP Assert::notEq怎麽用?PHP Assert::notEq使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Puli\Manager\Assert\Assert
的用法示例。
在下文中一共展示了Assert::notEq方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* Creates a new install target.
*
* @param string $name The name of the target.
* @param string $installerName The name of the used installer.
* @param string $location The location where resources are installed.
* @param string $urlFormat The format of the generated resource URLs. Include the placeholder "%s" for the resource path relative to the target location.
* @param array $parameterValues Values for the parameters defined by the installer descriptor.
*/
public function __construct($name, $installerName, $location, $urlFormat = self::DEFAULT_URL_FORMAT, array $parameterValues = array())
{
Assert::stringNotEmpty($name, 'The target name must be a non-empty string. Got: %s');
Assert::stringNotEmpty($installerName, 'The installer name must be a non-empty string. Got: %s');
Assert::notEq($name, self::DEFAULT_TARGET, 'The target name must not be "' . self::DEFAULT_TARGET . '".');
Assert::stringNotEmpty($location, 'The target location must be a non-empty string. Got: %s');
Assert::stringNotEmpty($urlFormat, 'The target URL format must be a non-empty string. Got: %s');
$this->name = $name;
$this->installerName = $installerName;
$this->location = $location;
$this->urlFormat = $urlFormat;
$this->parameterValues = $parameterValues;
}