本文整理汇总了PHP中Hesper\Core\Base\Assert::isBoolean方法的典型用法代码示例。如果您正苦于以下问题:PHP Assert::isBoolean方法的具体用法?PHP Assert::isBoolean怎么用?PHP Assert::isBoolean使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hesper\Core\Base\Assert
的用法示例。
在下文中一共展示了Assert::isBoolean方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setPublic
/**
* @return DoctypeDeclaration
**/
public function setPublic($isPublic)
{
Assert::isBoolean($isPublic);
$this->public = $isPublic;
$this->inline = false;
return $this;
}
示例2: __construct
public function __construct(Identifiable $parent, GenericDAO $dao, $lazy = true)
{
Assert::isBoolean($lazy);
$this->parent = $parent;
$this->lazy = $lazy;
$this->dao = $dao;
Assert::isInstance($dao->getObjectName(), Identifiable::class);
$this->comparator = SerializedObjectComparator::me();
}
示例3: setStrict
/**
* @return Cdata
**/
public function setStrict($isStrict)
{
Assert::isBoolean($isStrict);
$this->strict = $isStrict;
return $this;
}
示例4: setNoBody
/**
* @param $really boolean
*
* @return CurlHttpClient
**/
public function setNoBody($really)
{
Assert::isBoolean($really);
$this->noBody = $really;
return $this;
}
示例5: setEmpty
/**
* @return SgmlOpenTag
**/
public function setEmpty($isEmpty)
{
Assert::isBoolean($isEmpty);
$this->empty = $isEmpty;
return $this;
}
示例6: setOverlapped
public function setOverlapped($overlapped = true)
{
Assert::isBoolean($overlapped);
$this->overlapped = $overlapped === true;
return $this;
}
示例7: fetchCollection
/**
* @return Criteria
**/
public function fetchCollection($path, $lazy = false, $criteria = null)
{
Assert::isBoolean($lazy);
Assert::isTrue($criteria === null || $criteria instanceof Criteria);
$this->collections[$path]['lazy'] = $lazy;
$this->collections[$path]['criteria'] = $criteria;
$this->collections[$path]['propertyPath'] = new PropertyPath($this->checkAndGetDao()->getObjectName(), $path);
return $this;
}
示例8: setBuildArrays
/**
* @return RedirectView
**/
public function setBuildArrays($really)
{
Assert::isBoolean($really);
$this->buildArrays = $really;
return $this;
}
示例9: lowercaseTags
/**
* @return HtmlTokenizer
**/
public function lowercaseTags($isLowercaseTags)
{
Assert::isBoolean($isLowercaseTags);
$this->lowercaseTags = $isLowercaseTags;
return $this;
}