本文整理汇总了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;
}