示例#1
0
文件: InstanceOf.php 项目: cwcw/cms
 public function __construct($class)
 {
     if (!is_string($class)) {
         throw new InvalidArgumentException(__METHOD__ . ' expects parameter 1 to be a string');
     }
     parent::__construct($class);
 }
示例#2
0
文件: EqualTo.php 项目: cwcw/cms
 public function __construct($value, $strict = false)
 {
     parent::__construct($value);
     $this->_strict = (bool) $strict;
 }
示例#3
0
文件: InArray.php 项目: cwcw/cms
 public function __construct(array $list, $emptyListSatisfiesAll = false, $strict = false)
 {
     parent::__construct($list);
     $this->_emptyListSatisfiesAll = (bool) $emptyListSatisfiesAll;
     $this->_strict = (bool) $strict;
 }
示例#4
0
文件: AlwaysTrue.php 项目: cwcw/cms
 public function __construct()
 {
     parent::__construct(null);
 }