コード例 #1
0
ファイル: Filter.php プロジェクト: AroundPBT/PHPBoost
 /**
  * Activates or deactivates filtering.
  *
  * @param  boolean $filter
  * @throws InvalidArgumentException
  * @since  Method available since Release 3.0.0
  */
 public static function setFilter($filter)
 {
     if (is_bool($filter)) {
         self::$filter = $filter;
     } else {
         throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
     }
 }
コード例 #2
0
ファイル: Filter.php プロジェクト: yunsite/baokao
 /**
  * Activates or deactivates filtering.
  *
  * @param  boolean $filter
  * @throws InvalidArgumentException
  * @since  Method available since Release 3.0.0
  */
 public static function setFilter($filter)
 {
     if (is_bool($filter)) {
         self::$filter = $filter;
     } else {
         throw new InvalidArgumentException();
     }
 }