当前位置: 首页>>代码示例>>PHP>>正文


PHP Assert::isBoolean方法代码示例

本文整理汇总了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;
 }
开发者ID:justthefish,项目名称:hesper,代码行数:10,代码来源:DoctypeDeclaration.php

示例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();
 }
开发者ID:justthefish,项目名称:hesper,代码行数:9,代码来源:UnifiedContainer.php

示例3: setStrict

 /**
  * @return Cdata
  **/
 public function setStrict($isStrict)
 {
     Assert::isBoolean($isStrict);
     $this->strict = $isStrict;
     return $this;
 }
开发者ID:justthefish,项目名称:hesper,代码行数:9,代码来源:Cdata.php

示例4: setNoBody

 /**
  * @param $really boolean
  *
  * @return CurlHttpClient
  **/
 public function setNoBody($really)
 {
     Assert::isBoolean($really);
     $this->noBody = $really;
     return $this;
 }
开发者ID:avid,项目名称:hesper,代码行数:11,代码来源:CurlHttpClient.php

示例5: setEmpty

 /**
  * @return SgmlOpenTag
  **/
 public function setEmpty($isEmpty)
 {
     Assert::isBoolean($isEmpty);
     $this->empty = $isEmpty;
     return $this;
 }
开发者ID:justthefish,项目名称:hesper,代码行数:9,代码来源:SgmlOpenTag.php

示例6: setOverlapped

 public function setOverlapped($overlapped = true)
 {
     Assert::isBoolean($overlapped);
     $this->overlapped = $overlapped === true;
     return $this;
 }
开发者ID:justthefish,项目名称:hesper,代码行数:6,代码来源:TimeIntervalsGenerator.php

示例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;
 }
开发者ID:justthefish,项目名称:hesper,代码行数:12,代码来源:Criteria.php

示例8: setBuildArrays

 /**
  * @return RedirectView
  **/
 public function setBuildArrays($really)
 {
     Assert::isBoolean($really);
     $this->buildArrays = $really;
     return $this;
 }
开发者ID:justthefish,项目名称:hesper,代码行数:9,代码来源:RedirectView.php

示例9: lowercaseTags

 /**
  * @return HtmlTokenizer
  **/
 public function lowercaseTags($isLowercaseTags)
 {
     Assert::isBoolean($isLowercaseTags);
     $this->lowercaseTags = $isLowercaseTags;
     return $this;
 }
开发者ID:justthefish,项目名称:hesper,代码行数:9,代码来源:HtmlTokenizer.php


注:本文中的Hesper\Core\Base\Assert::isBoolean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。